<!DOCTYPE html>
<!-- saved from url=(0064)http://developer.android.com/reference/android/app/Activity.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<link rel="shortcut icon" type="image/x-icon" href="http://developer.android.com/favicon.ico">
<title>Activity | Android Developers</title>

<!-- STYLESHEETS -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic,bold" title="roboto">
<link href="./Activity_files/default.css" rel="stylesheet" type="text/css">


<!-- FULLSCREEN STYLESHEET -->
<link href="./Activity_files/fullscreen.css" rel="stylesheet" class="fullscreen" type="text/css">


<!-- JAVASCRIPT -->
<script src="./Activity_files/cb=gapi.loaded_0" async=""></script><script type="text/javascript" async="" src="./Activity_files/plusone.js" gapi_processed="true"></script><script type="text/javascript" async="" src="./Activity_files/ga.js"></script><script src="./Activity_files/jsapi" type="text/javascript"></script>
<script src="./Activity_files/android_3p-bundle.js" type="text/javascript"></script>
<script type="text/javascript">
  var toRoot = "/";
  
  var devsite = false;
  
</script>
<script src="./Activity_files/docs.js" type="text/javascript"></script><script src="./Activity_files/saved_resource" type="text/javascript"></script><link href="./Activity_files/default+en.css" type="text/css" rel="stylesheet"><script src="./Activity_files/default+en.I.js" type="text/javascript"></script>

<script src="./Activity_files/navtree_data.js" type="text/javascript"></script>


<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-5831155-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<script type="text/javascript" src="./Activity_files/lists.js"></script></head>
<body class="gc-documentation 
  develop" itemscope="" itemtype="http://schema.org/Article">
  <div id="doc-api-level" class="1" style="display:none"></div>
  <a name="top"></a>

    <!-- Header -->
    <div id="header">
        <div class="wrap" id="header-wrap">
          <div class="col-3 logo">
          <a href="http://developer.android.com/index.html">
            <img src="./Activity_files/dac_logo.png" width="123" height="25" alt="Android Developers">
          </a>
          <div class="btn-quicknav" id="btn-quicknav">
          	<a href="http://developer.android.com/reference/android/app/Activity.html#" class="arrow-inactive">Quicknav</a>
			      <a href="http://developer.android.com/reference/android/app/Activity.html#" class="arrow-active">Quicknav</a>
          </div>
          </div>
            <ul class="nav-x col-9">
                <li class="design">
                  <a href="http://developer.android.com/design/index.html" zh-tw-lang="設計" zh-cn-lang="设计" ru-lang="Проектирование" ko-lang="디자인" ja-lang="設計" es-lang="Diseñar">Design</a></li>
                <li class="develop"><a href="http://developer.android.com/develop/index.html" zh-tw-lang="開發" zh-cn-lang="开发" ru-lang="Разработка" ko-lang="개발" ja-lang="開発" es-lang="Desarrollar" class="selected">Develop</a></li>
                <li class="distribute last"><a href="http://developer.android.com/distribute/index.html" zh-tw-lang="發佈" zh-cn-lang="分发" ru-lang="Распространение" ko-lang="배포" ja-lang="配布" es-lang="Distribuir">Distribute</a></li>
            </ul>
            
            <!-- New Search -->
            <div class="menu-container">
            <div class="moremenu">
    <div id="more-btn"></div>
  </div>
  <div class="morehover" id="moremenu">
    <div class="top"></div>
    <div class="mid">
      <div class="header">Links</div>
      <ul>
        <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li>
        <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
        <li><a href="http://developer.android.com/about/index.html">About Android</a></li>
      </ul>
      <div class="header">Android Sites</div>
      <ul>
        <li><a href="http://www.android.com/">Android.com</a></li>
        <li class="active"><a>Android Developers</a></li>
        <li><a href="http://source.android.com/">Android Open Source Project</a></li>
      </ul>
      

      
      
        <div class="header">Language</div>
          <div id="language" class="locales">
            <select name="language" onchange="changeLangPref(this.value, true)">
                <option value="en" selected="selected">English</option>
                <option value="es">Español</option>
                <option value="ja">日本語</option>
                <option value="ko">한국어</option>
                <option value="ru">Русский</option>
                <option value="zh-CN">中文 (中国)</option>
                <option value="zh-TW">中文 (台灣)</option>
            </select>
          </div>
        <script type="text/javascript">
          <!--
          loadLangPref();
            //-->
        </script>
      
      


      <br class="clearfix">
    </div>
    <div class="bottom"></div>
  </div>
  <div class="search" id="search-container">
    <div class="search-inner">
      <div id="search-btn"></div>
      <div class="left"></div>
      <form onsubmit="return submit_search()">
        <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" onkeydown="return search_changed(event, true, &#39;/&#39;)" onkeyup="return search_changed(event, false, &#39;/&#39;)">
      </form>
      <div class="right"></div>
        <a class="close hide">close</a>
        <div class="left"></div>
        <div class="right"></div>
    </div>
  </div>
  <div id="search_filtered_wrapper">
    <div id="search_filtered_div" class="no-display">
        <ul id="search_filtered">
        </ul>
    </div>
  </div>
  
  </div>
  <!-- /New Search>
          
          
          <!-- Expanded quicknav -->
           <div id="quicknav" class="col-9">
                <ul>
                    <li class="design">
                      <ul>
                        <li><a href="http://developer.android.com/design/index.html">Get Started</a></li>
                        <li><a href="http://developer.android.com/design/style/index.html">Style</a></li>
                        <li><a href="http://developer.android.com/design/patterns/index.html">Patterns</a></li>
                        <li><a href="http://developer.android.com/design/building-blocks/index.html">Building Blocks</a></li>
                        <li><a href="http://developer.android.com/design/downloads/index.html">Downloads</a></li>
                        <li><a href="http://developer.android.com/design/videos/index.html">Videos</a></li>
                      </ul>
                    </li>
                    <li class="develop">
                      <ul>
                        <li><a href="http://developer.android.com/training/index.html" zh-tw-lang="訓練課程" zh-cn-lang="培训" ru-lang="Курсы" ko-lang="교육" ja-lang="トレーニング" es-lang="Capacitación" class="selected">Training</a></li>
                        <li><a href="http://developer.android.com/guide/components/index.html" zh-tw-lang="API 指南" zh-cn-lang="API 指南" ru-lang="Руководства по API" ko-lang="API 가이드" ja-lang="API ガイド" es-lang="Guías de la API" class="selected">API Guides</a></li>
                        <li><a href="http://developer.android.com/reference/packages.html" zh-tw-lang="參考資源" zh-cn-lang="参考" ru-lang="Справочник" ko-lang="참조문서" ja-lang="リファレンス" es-lang="Referencia" class="selected">Reference</a></li>
                        <li><a href="http://developer.android.com/tools/index.html" zh-tw-lang="相關工具" zh-cn-lang="工具" ru-lang="Инструменты" ko-lang="도구" ja-lang="ツール" es-lang="Herramientas" class="selected">Tools</a>
                          <ul><li><a href="http://developer.android.com/sdk/index.html" class="selected">Get the SDK</a></li></ul>
                        </li>
                        <li><a href="http://developer.android.com/google/index.html" class="selected">Google Services</a>
                        </li>
                      </ul>
                    </li>
                    <li class="distribute last">
                      <ul>
                        <li><a href="http://developer.android.com/distribute/index.html">Google Play</a></li>
                        <li><a href="http://developer.android.com/distribute/googleplay/publish/index.html">Publishing</a></li>
                        <li><a href="http://developer.android.com/distribute/googleplay/promote/index.html">Promoting</a></li>
                        <li><a href="http://developer.android.com/distribute/googleplay/quality/index.html">App Quality</a></li>
                        <li><a href="http://developer.android.com/distribute/googleplay/spotlight/index.html">Spotlight</a></li>
                        <li><a href="http://developer.android.com/distribute/open.html">Open Distribution</a></li>
                      </ul>
                    </li>
                </ul>
          </div>
          <!-- /Expanded quicknav -->
        </div>
    </div>
    <!-- /Header -->
    
    
  <div id="searchResults" class="wrap" style="display: none;">
          <h2 id="searchTitle" style="margin-bottom: 0px;">Results</h2><hr>
          <div id="leftSearchControl" class="search-control">Loading...</div>
  </div>
    
    
    

    <!-- Secondary x-nav -->
    <div id="nav-x">
        <div class="wrap">
            <ul class="nav-x col-9 develop" style="width:100%">
                <li class="training"><a href="http://developer.android.com/training/index.html" zh-tw-lang="訓練課程" zh-cn-lang="培训" ru-lang="Курсы" ko-lang="교육" ja-lang="トレーニング" es-lang="Capacitación">Training</a></li>
                <li class="guide"><a href="http://developer.android.com/guide/components/index.html" zh-tw-lang="API 指南" zh-cn-lang="API 指南" ru-lang="Руководства по API" ko-lang="API 가이드" ja-lang="API ガイド" es-lang="Guías de la API">API Guides</a></li>
                <li class="reference"><a href="http://developer.android.com/reference/packages.html" zh-tw-lang="參考資源" zh-cn-lang="参考" ru-lang="Справочник" ko-lang="참조문서" ja-lang="リファレンス" es-lang="Referencia" class="selected">Reference</a></li>
                <li class="tools"><a href="http://developer.android.com/tools/index.html" zh-tw-lang="相關工具" zh-cn-lang="工具" ru-lang="Инструменты" ko-lang="도구" ja-lang="ツール" es-lang="Herramientas">Tools</a></li>
                <li class="google"><a href="http://developer.android.com/google/index.html">Google Services</a>
                </li>
            </ul>
        </div>
        
    </div>
    <!-- /Sendondary x-nav -->

  


  <div class="wrap clearfix" id="body-content"><div id="devdoc-nav" class="fixed" style="width: 276px; left: 20px;">

<a class="totop" href="http://developer.android.com/reference/android/app/Activity.html#top" data-g-event="left-nav-top" style="display: block; left: 20px;">to top</a>
      <div id="api-nav-header">
        <div id="api-level-toggle">
          <label for="apiLevelCheckbox" class="disabled">API level: </label>
          <div class="select-wrapper">
            <select id="apiLevelSelector"><option value="17" selected="true">17</option><option value="16">16</option><option value="15">15</option><option value="14">14</option><option value="13">13</option><option value="12">12</option><option value="11">11</option><option value="10">10</option><option value="9">9</option><option value="8">8</option><option value="7">7</option><option value="6">6</option><option value="5">5</option><option value="4">4</option><option value="3">3</option><option value="2">2</option><option value="1">1</option></select>
          </div>
        </div><!-- end toggle -->
        <div id="api-nav-title">Android APIs</div>
        </div><!-- end nav header -->
      
                  
      <div id="swapper" style="height: 694px;">
        <div id="nav-panels">
          <div id="resize-packages-nav">
            <div id="packages-nav" class="scroll-pane jspScrollable" style="overflow: hidden; padding: 0px; width: 276px;">

              

            <div class="jspContainer" style="width: 276px; height: 270px;"><div class="jspPane" style="padding: 0px; top: 0px; width: 272px;"><ul>
              	
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/package-summary.html">android</a></li>
    <li class="api apilevel-4">
  <a href="http://developer.android.com/reference/android/accessibilityservice/package-summary.html">android.accessibilityservice</a></li>
    <li class="api apilevel-5">
  <a href="http://developer.android.com/reference/android/accounts/package-summary.html">android.accounts</a></li>
    <li class="api apilevel-11">
  <a href="http://developer.android.com/reference/android/animation/package-summary.html">android.animation</a></li>
    <li class="selected api apilevel-1">
  <a href="http://developer.android.com/reference/android/app/package-summary.html">android.app</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/android/app/admin/package-summary.html">android.app.admin</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/android/app/backup/package-summary.html">android.app.backup</a></li>
    <li class="api apilevel-3">
  <a href="http://developer.android.com/reference/android/appwidget/package-summary.html">android.appwidget</a></li>
    <li class="api apilevel-5">
  <a href="http://developer.android.com/reference/android/bluetooth/package-summary.html">android.bluetooth</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/content/package-summary.html">android.content</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/content/pm/package-summary.html">android.content.pm</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/content/res/package-summary.html">android.content.res</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/database/package-summary.html">android.database</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/database/sqlite/package-summary.html">android.database.sqlite</a></li>
    <li class="api apilevel-11">
  <a href="http://developer.android.com/reference/android/drm/package-summary.html">android.drm</a></li>
    <li class="api apilevel-4">
  <a href="http://developer.android.com/reference/android/gesture/package-summary.html">android.gesture</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/graphics/package-summary.html">android.graphics</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/graphics/drawable/package-summary.html">android.graphics.drawable</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/graphics/drawable/shapes/package-summary.html">android.graphics.drawable.shapes</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/hardware/package-summary.html">android.hardware</a></li>
    <li class="api apilevel-17">
  <a href="http://developer.android.com/reference/android/hardware/display/package-summary.html">android.hardware.display</a></li>
    <li class="api apilevel-16">
  <a href="http://developer.android.com/reference/android/hardware/input/package-summary.html">android.hardware.input</a></li>
    <li class="api apilevel-12">
  <a href="http://developer.android.com/reference/android/hardware/usb/package-summary.html">android.hardware.usb</a></li>
    <li class="api apilevel-3">
  <a href="http://developer.android.com/reference/android/inputmethodservice/package-summary.html">android.inputmethodservice</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/location/package-summary.html">android.location</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/media/package-summary.html">android.media</a></li>
    <li class="api apilevel-9">
  <a href="http://developer.android.com/reference/android/media/audiofx/package-summary.html">android.media.audiofx</a></li>
    <li class="api apilevel-14">
  <a href="http://developer.android.com/reference/android/media/effect/package-summary.html">android.media.effect</a></li>
    <li class="api apilevel-12">
  <a href="http://developer.android.com/reference/android/mtp/package-summary.html">android.mtp</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/net/package-summary.html">android.net</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/net/http/package-summary.html">android.net.http</a></li>
    <li class="api apilevel-16">
  <a href="http://developer.android.com/reference/android/net/nsd/package-summary.html">android.net.nsd</a></li>
    <li class="api apilevel-12">
  <a href="http://developer.android.com/reference/android/net/rtp/package-summary.html">android.net.rtp</a></li>
    <li class="api apilevel-9">
  <a href="http://developer.android.com/reference/android/net/sip/package-summary.html">android.net.sip</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/net/wifi/package-summary.html">android.net.wifi</a></li>
    <li class="api apilevel-14">
  <a href="http://developer.android.com/reference/android/net/wifi/p2p/package-summary.html">android.net.wifi.p2p</a></li>
    <li class="api apilevel-16">
  <a href="http://developer.android.com/reference/android/net/wifi/p2p/nsd/package-summary.html">android.net.wifi.p2p.nsd</a></li>
    <li class="api apilevel-9">
  <a href="http://developer.android.com/reference/android/nfc/package-summary.html">android.nfc</a></li>
    <li class="api apilevel-10">
  <a href="http://developer.android.com/reference/android/nfc/tech/package-summary.html">android.nfc.tech</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/opengl/package-summary.html">android.opengl</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/os/package-summary.html">android.os</a></li>
    <li class="api apilevel-9">
  <a href="http://developer.android.com/reference/android/os/storage/package-summary.html">android.os.storage</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/preference/package-summary.html">android.preference</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/provider/package-summary.html">android.provider</a></li>
    <li class="api apilevel-11">
  <a href="http://developer.android.com/reference/android/renderscript/package-summary.html">android.renderscript</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/sax/package-summary.html">android.sax</a></li>
    <li class="api apilevel-14">
  <a href="http://developer.android.com/reference/android/security/package-summary.html">android.security</a></li>
    <li class="api apilevel-17">
  <a href="http://developer.android.com/reference/android/service/dreams/package-summary.html">android.service.dreams</a></li>
    <li class="api apilevel-14">
  <a href="http://developer.android.com/reference/android/service/textservice/package-summary.html">android.service.textservice</a></li>
    <li class="api apilevel-7">
  <a href="http://developer.android.com/reference/android/service/wallpaper/package-summary.html">android.service.wallpaper</a></li>
    <li class="api apilevel-3">
  <a href="http://developer.android.com/reference/android/speech/package-summary.html">android.speech</a></li>
    <li class="api apilevel-4">
  <a href="http://developer.android.com/reference/android/speech/tts/package-summary.html">android.speech.tts</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v13/app/package-summary.html">android.support.v13.app</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/accessibilityservice/package-summary.html">android.support.v4.accessibilityservice</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/app/package-summary.html">android.support.v4.app</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/content/package-summary.html">android.support.v4.content</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/content/pm/package-summary.html">android.support.v4.content.pm</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/database/package-summary.html">android.support.v4.database</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/net/package-summary.html">android.support.v4.net</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/os/package-summary.html">android.support.v4.os</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/util/package-summary.html">android.support.v4.util</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/view/package-summary.html">android.support.v4.view</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/view/accessibility/package-summary.html">android.support.v4.view.accessibility</a></li>
    <li class="api apilevel-">
  <a href="http://developer.android.com/reference/android/support/v4/widget/package-summary.html">android.support.v4.widget</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/telephony/package-summary.html">android.telephony</a></li>
    <li class="api apilevel-5">
  <a href="http://developer.android.com/reference/android/telephony/cdma/package-summary.html">android.telephony.cdma</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/telephony/gsm/package-summary.html">android.telephony.gsm</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/test/package-summary.html">android.test</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/test/mock/package-summary.html">android.test.mock</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/test/suitebuilder/package-summary.html">android.test.suitebuilder</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/text/package-summary.html">android.text</a></li>
    <li class="api apilevel-3">
  <a href="http://developer.android.com/reference/android/text/format/package-summary.html">android.text.format</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/text/method/package-summary.html">android.text.method</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/text/style/package-summary.html">android.text.style</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/text/util/package-summary.html">android.text.util</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/util/package-summary.html">android.util</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/view/package-summary.html">android.view</a></li>
    <li class="api apilevel-4">
  <a href="http://developer.android.com/reference/android/view/accessibility/package-summary.html">android.view.accessibility</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/view/animation/package-summary.html">android.view.animation</a></li>
    <li class="api apilevel-3">
  <a href="http://developer.android.com/reference/android/view/inputmethod/package-summary.html">android.view.inputmethod</a></li>
    <li class="api apilevel-14">
  <a href="http://developer.android.com/reference/android/view/textservice/package-summary.html">android.view.textservice</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/webkit/package-summary.html">android.webkit</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/android/widget/package-summary.html">android.widget</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/dalvik/bytecode/package-summary.html">dalvik.bytecode</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/dalvik/system/package-summary.html">dalvik.system</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/awt/font/package-summary.html">java.awt.font</a></li>
    <li class="api apilevel-3">
  <a href="http://developer.android.com/reference/java/beans/package-summary.html">java.beans</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/io/package-summary.html">java.io</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/lang/package-summary.html">java.lang</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/lang/annotation/package-summary.html">java.lang.annotation</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/lang/ref/package-summary.html">java.lang.ref</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/lang/reflect/package-summary.html">java.lang.reflect</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/math/package-summary.html">java.math</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/net/package-summary.html">java.net</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/nio/package-summary.html">java.nio</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/nio/channels/package-summary.html">java.nio.channels</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/nio/channels/spi/package-summary.html">java.nio.channels.spi</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/nio/charset/package-summary.html">java.nio.charset</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/nio/charset/spi/package-summary.html">java.nio.charset.spi</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/security/package-summary.html">java.security</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/security/acl/package-summary.html">java.security.acl</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/security/cert/package-summary.html">java.security.cert</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/security/interfaces/package-summary.html">java.security.interfaces</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/security/spec/package-summary.html">java.security.spec</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/sql/package-summary.html">java.sql</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/text/package-summary.html">java.text</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/util/package-summary.html">java.util</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/util/concurrent/package-summary.html">java.util.concurrent</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/util/concurrent/atomic/package-summary.html">java.util.concurrent.atomic</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/util/concurrent/locks/package-summary.html">java.util.concurrent.locks</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/util/jar/package-summary.html">java.util.jar</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/util/logging/package-summary.html">java.util.logging</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/util/prefs/package-summary.html">java.util.prefs</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/util/regex/package-summary.html">java.util.regex</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/java/util/zip/package-summary.html">java.util.zip</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/crypto/package-summary.html">javax.crypto</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/crypto/interfaces/package-summary.html">javax.crypto.interfaces</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/crypto/spec/package-summary.html">javax.crypto.spec</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/microedition/khronos/egl/package-summary.html">javax.microedition.khronos.egl</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/microedition/khronos/opengles/package-summary.html">javax.microedition.khronos.opengles</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/net/package-summary.html">javax.net</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/net/ssl/package-summary.html">javax.net.ssl</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/security/auth/package-summary.html">javax.security.auth</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/security/auth/callback/package-summary.html">javax.security.auth.callback</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/security/auth/login/package-summary.html">javax.security.auth.login</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/security/auth/x500/package-summary.html">javax.security.auth.x500</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/security/cert/package-summary.html">javax.security.cert</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/sql/package-summary.html">javax.sql</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/xml/package-summary.html">javax.xml</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/javax/xml/datatype/package-summary.html">javax.xml.datatype</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/javax/xml/namespace/package-summary.html">javax.xml.namespace</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/javax/xml/parsers/package-summary.html">javax.xml.parsers</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/javax/xml/transform/package-summary.html">javax.xml.transform</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/javax/xml/transform/dom/package-summary.html">javax.xml.transform.dom</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/javax/xml/transform/sax/package-summary.html">javax.xml.transform.sax</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/javax/xml/transform/stream/package-summary.html">javax.xml.transform.stream</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/javax/xml/validation/package-summary.html">javax.xml.validation</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/javax/xml/xpath/package-summary.html">javax.xml.xpath</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/junit/framework/package-summary.html">junit.framework</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/junit/runner/package-summary.html">junit.runner</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/package-summary.html">org.apache.http</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/auth/package-summary.html">org.apache.http.auth</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/auth/params/package-summary.html">org.apache.http.auth.params</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/client/package-summary.html">org.apache.http.client</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/client/entity/package-summary.html">org.apache.http.client.entity</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/client/methods/package-summary.html">org.apache.http.client.methods</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/client/params/package-summary.html">org.apache.http.client.params</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/client/protocol/package-summary.html">org.apache.http.client.protocol</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/client/utils/package-summary.html">org.apache.http.client.utils</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/conn/package-summary.html">org.apache.http.conn</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/conn/params/package-summary.html">org.apache.http.conn.params</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/conn/routing/package-summary.html">org.apache.http.conn.routing</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/conn/scheme/package-summary.html">org.apache.http.conn.scheme</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/conn/ssl/package-summary.html">org.apache.http.conn.ssl</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/conn/util/package-summary.html">org.apache.http.conn.util</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/cookie/package-summary.html">org.apache.http.cookie</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/cookie/params/package-summary.html">org.apache.http.cookie.params</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/entity/package-summary.html">org.apache.http.entity</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/impl/package-summary.html">org.apache.http.impl</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/impl/auth/package-summary.html">org.apache.http.impl.auth</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/impl/client/package-summary.html">org.apache.http.impl.client</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/impl/conn/package-summary.html">org.apache.http.impl.conn</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/impl/conn/tsccm/package-summary.html">org.apache.http.impl.conn.tsccm</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/impl/cookie/package-summary.html">org.apache.http.impl.cookie</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/impl/entity/package-summary.html">org.apache.http.impl.entity</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/impl/io/package-summary.html">org.apache.http.impl.io</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/io/package-summary.html">org.apache.http.io</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/message/package-summary.html">org.apache.http.message</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/params/package-summary.html">org.apache.http.params</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/protocol/package-summary.html">org.apache.http.protocol</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/apache/http/util/package-summary.html">org.apache.http.util</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/json/package-summary.html">org.json</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/w3c/dom/package-summary.html">org.w3c.dom</a></li>
    <li class="api apilevel-8">
  <a href="http://developer.android.com/reference/org/w3c/dom/ls/package-summary.html">org.w3c.dom.ls</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/xml/sax/package-summary.html">org.xml.sax</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/xml/sax/ext/package-summary.html">org.xml.sax.ext</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/xml/sax/helpers/package-summary.html">org.xml.sax.helpers</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/xmlpull/v1/package-summary.html">org.xmlpull.v1</a></li>
    <li class="api apilevel-1">
  <a href="http://developer.android.com/reference/org/xmlpull/v1/sax2/package-summary.html">org.xmlpull.v1.sax2</a></li>
              </ul><br></div><div class="jspVerticalBar"><div class="jspCap jspCapTop"></div><div class="jspTrack" style="height: 262px;"><div class="jspDrag" style="height: 21px;"><div class="jspDragTop"></div><div class="jspDragBottom"></div></div></div><div class="jspCap jspCapBottom"></div></div></div></div> <!-- end packages-nav -->
          </div> <!-- end resize-packages -->
          <div id="classes-nav" class="scroll-pane jspScrollable" style="overflow: hidden; padding: 0px; height: 414px; margin-top: 10px; width: 276px;">



            
        

          <div class="jspContainer" style="width: 276px; height: 414px;"><div class="jspPane" style="padding: 0px; left: 0px; top: -365px; width: 276px;"><ul>
              
    <li><h2>Interfaces</h2>
      <ul>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/ActionBar.OnMenuVisibilityListener.html">ActionBar.OnMenuVisibilityListener</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/ActionBar.OnNavigationListener.html">ActionBar.OnNavigationListener</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/ActionBar.TabListener.html">ActionBar.TabListener</a></li>
          <li class="api apilevel-14"><a href="http://developer.android.com/reference/android/app/Application.ActivityLifecycleCallbacks.html">Application.ActivityLifecycleCallbacks</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/DatePickerDialog.OnDateSetListener.html">DatePickerDialog.OnDateSetListener</a></li>
          <li class="api apilevel-12"><a href="http://developer.android.com/reference/android/app/FragmentBreadCrumbs.OnBreadCrumbClickListener.html">FragmentBreadCrumbs.OnBreadCrumbClickListener</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/FragmentManager.BackStackEntry.html">FragmentManager.BackStackEntry</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/FragmentManager.OnBackStackChangedListener.html">FragmentManager.OnBackStackChangedListener</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/KeyguardManager.OnKeyguardExitResult.html">KeyguardManager.OnKeyguardExitResult</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/LoaderManager.LoaderCallbacks.html">LoaderManager.LoaderCallbacks</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/PendingIntent.OnFinished.html">PendingIntent.OnFinished</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/SearchManager.OnCancelListener.html">SearchManager.OnCancelListener</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/SearchManager.OnDismissListener.html">SearchManager.OnDismissListener</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/TimePickerDialog.OnTimeSetListener.html">TimePickerDialog.OnTimeSetListener</a></li>
      </ul>
    </li>
              
    <li><h2>Classes</h2>
      <ul>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/ActionBar.html">ActionBar</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/ActionBar.LayoutParams.html">ActionBar.LayoutParams</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/ActionBar.Tab.html">ActionBar.Tab</a></li>
          <li class="selected api apilevel-1"><a href="./Activity_files/Activity.htm">Activity</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/ActivityGroup.html">ActivityGroup</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/ActivityManager.html">ActivityManager</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/ActivityManager.MemoryInfo.html">ActivityManager.MemoryInfo</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/ActivityManager.ProcessErrorStateInfo.html">ActivityManager.ProcessErrorStateInfo</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/ActivityManager.RecentTaskInfo.html">ActivityManager.RecentTaskInfo</a></li>
          <li class="api apilevel-3"><a href="http://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo.html">ActivityManager.RunningAppProcessInfo</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/ActivityManager.RunningServiceInfo.html">ActivityManager.RunningServiceInfo</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/ActivityManager.RunningTaskInfo.html">ActivityManager.RunningTaskInfo</a></li>
          <li class="api apilevel-16"><a href="http://developer.android.com/reference/android/app/ActivityOptions.html">ActivityOptions</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/AlarmManager.html">AlarmManager</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/AlertDialog.html">AlertDialog</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/AlertDialog.Builder.html">AlertDialog.Builder</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/AliasActivity.html">AliasActivity</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/Application.html">Application</a></li>
          <li class="api apilevel-14"><a href="http://developer.android.com/reference/android/app/ApplicationErrorReport.html">ApplicationErrorReport</a></li>
          <li class="api apilevel-14"><a href="http://developer.android.com/reference/android/app/ApplicationErrorReport.AnrInfo.html">ApplicationErrorReport.AnrInfo</a></li>
          <li class="api apilevel-14"><a href="http://developer.android.com/reference/android/app/ApplicationErrorReport.BatteryInfo.html">ApplicationErrorReport.BatteryInfo</a></li>
          <li class="api apilevel-14"><a href="http://developer.android.com/reference/android/app/ApplicationErrorReport.CrashInfo.html">ApplicationErrorReport.CrashInfo</a></li>
          <li class="api apilevel-14"><a href="http://developer.android.com/reference/android/app/ApplicationErrorReport.RunningServiceInfo.html">ApplicationErrorReport.RunningServiceInfo</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/DatePickerDialog.html">DatePickerDialog</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/Dialog.html">Dialog</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></li>
          <li class="api apilevel-9"><a href="http://developer.android.com/reference/android/app/DownloadManager.html">DownloadManager</a></li>
          <li class="api apilevel-9"><a href="http://developer.android.com/reference/android/app/DownloadManager.Query.html">DownloadManager.Query</a></li>
          <li class="api apilevel-9"><a href="http://developer.android.com/reference/android/app/DownloadManager.Request.html">DownloadManager.Request</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/ExpandableListActivity.html">ExpandableListActivity</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a></li>
          <li class="api apilevel-13"><a href="http://developer.android.com/reference/android/app/Fragment.SavedState.html">Fragment.SavedState</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/FragmentBreadCrumbs.html">FragmentBreadCrumbs</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/FragmentTransaction.html">FragmentTransaction</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/Instrumentation.html">Instrumentation</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/Instrumentation.ActivityMonitor.html">Instrumentation.ActivityMonitor</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/Instrumentation.ActivityResult.html">Instrumentation.ActivityResult</a></li>
          <li class="api apilevel-3"><a href="http://developer.android.com/reference/android/app/IntentService.html">IntentService</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/KeyguardManager.html">KeyguardManager</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/KeyguardManager.KeyguardLock.html">KeyguardManager.KeyguardLock</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/LauncherActivity.html">LauncherActivity</a></li>
          <li class="api apilevel-3"><a href="http://developer.android.com/reference/android/app/LauncherActivity.IconResizer.html">LauncherActivity.IconResizer</a></li>
          <li class="api apilevel-3"><a href="http://developer.android.com/reference/android/app/LauncherActivity.ListItem.html">LauncherActivity.ListItem</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/ListActivity.html">ListActivity</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/ListFragment.html">ListFragment</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/LoaderManager.html">LoaderManager</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/LocalActivityManager.html">LocalActivityManager</a></li>
          <li class="api apilevel-16"><a href="http://developer.android.com/reference/android/app/MediaRouteActionProvider.html">MediaRouteActionProvider</a></li>
          <li class="api apilevel-16"><a href="http://developer.android.com/reference/android/app/MediaRouteButton.html">MediaRouteButton</a></li>
          <li class="api apilevel-9"><a href="http://developer.android.com/reference/android/app/NativeActivity.html">NativeActivity</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/Notification.html">Notification</a></li>
          <li class="api apilevel-16"><a href="http://developer.android.com/reference/android/app/Notification.BigPictureStyle.html">Notification.BigPictureStyle</a></li>
          <li class="api apilevel-16"><a href="http://developer.android.com/reference/android/app/Notification.BigTextStyle.html">Notification.BigTextStyle</a></li>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/Notification.Builder.html">Notification.Builder</a></li>
          <li class="api apilevel-16"><a href="http://developer.android.com/reference/android/app/Notification.InboxStyle.html">Notification.InboxStyle</a></li>
          <li class="api apilevel-16"><a href="http://developer.android.com/reference/android/app/Notification.Style.html">Notification.Style</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/NotificationManager.html">NotificationManager</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/PendingIntent.html">PendingIntent</a></li>
          <li class="api apilevel-17"><a href="http://developer.android.com/reference/android/app/Presentation.html">Presentation</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/ProgressDialog.html">ProgressDialog</a></li>
          <li class="api apilevel-8"><a href="http://developer.android.com/reference/android/app/SearchableInfo.html">SearchableInfo</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/SearchManager.html">SearchManager</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/Service.html">Service</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/TabActivity.html">TabActivity</a></li>
          <li class="api apilevel-16"><a href="http://developer.android.com/reference/android/app/TaskStackBuilder.html">TaskStackBuilder</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/TimePickerDialog.html">TimePickerDialog</a></li>
          <li class="api apilevel-8"><a href="http://developer.android.com/reference/android/app/UiModeManager.html">UiModeManager</a></li>
          <li class="api apilevel-7"><a href="http://developer.android.com/reference/android/app/WallpaperInfo.html">WallpaperInfo</a></li>
          <li class="api apilevel-5"><a href="http://developer.android.com/reference/android/app/WallpaperManager.html">WallpaperManager</a></li>
      </ul>
    </li>
              
              
    <li><h2>Exceptions</h2>
      <ul>
          <li class="api apilevel-11"><a href="http://developer.android.com/reference/android/app/Fragment.InstantiationException.html">Fragment.InstantiationException</a></li>
          <li class="api apilevel-1"><a href="http://developer.android.com/reference/android/app/PendingIntent.CanceledException.html">PendingIntent.CanceledException</a></li>
      </ul>
    </li>
              
            </ul><br></div><div class="jspVerticalBar"><div class="jspCap jspCapTop"></div><div class="jspTrack" style="height: 402px;"><div class="jspDrag" style="height: 90px; top: 79.13829047949966px;"><div class="jspDragTop"></div><div class="jspDragBottom"></div></div></div><div class="jspCap jspCapBottom"></div></div><div class="jspHorizontalBar"><div class="jspCap jspCapLeft" style=""></div><div class="jspTrack" style="width: 272px;"><div class="jspDrag" style="width: 225px; left: 0px;"><div class="jspDragLeft"></div><div class="jspDragRight"></div></div></div><div class="jspCap jspCapRight" style=""></div><div class="jspCorner" style="width: 4px;"></div></div></div></div><!-- end classes -->
        </div><!-- end nav-panels -->
        <div id="nav-tree" style="display: none; overflow: hidden; padding: 0px; width: 0px;" class="scroll-pane">
          
        <div class="jspContainer" style="width: 0px; height: 0px;"><div class="jspPane" style="padding: 0px; top: 0px; width: 0px;"><div id="tree-list"></div></div></div></div><!-- end nav-tree -->
      </div><!-- end swapper -->
      <div id="nav-swap">
      <a class="fullscreen">fullscreen</a>
      <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="swapNav();return false;"><span id="tree-link">Use Tree Navigation</span><span id="panel-link" style="display:none">Use Panel Navigation</span></a>
      </div>
    </div>
    <div class="col-4" id="side-nav" itemscope="" itemtype="http://schema.org/SiteNavigationElement">
       <!-- end devdoc-nav -->
    </div> <!-- end side-nav -->
    <script type="text/javascript">
      // init fullscreen based on user pref
      var fullscreen = readCookie("fullscreen");
      if (fullscreen != 0) {
        if (fullscreen == "false") {
          toggleFullscreen(false);
        } else {
          toggleFullscreen(true);
        }
      }
      // init nav version for mobile
      if (isMobile) {
        swapNav(); // tree view should be used on mobile
        $('#nav-swap').hide();
      } else {
        chooseDefaultNav();
        if ($("#nav-tree").is(':visible')) {
          init_default_navtree("/");
        }
      }
      // scroll the selected page into view
      $(document).ready(function() {
        scrollIntoView("packages-nav");
        scrollIntoView("classes-nav");
        });
    </script>

     



<div class="col-12" id="doc-col">

<div id="api-info-block">



  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
   
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
   
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  


<div class="sum-details-links">

Summary:





  <a href="http://developer.android.com/reference/android/app/Activity.html#constants">Constants</a>
  


  | <a href="http://developer.android.com/reference/android/app/Activity.html#inhconstants">Inherited Constants</a>
  


  | <a href="http://developer.android.com/reference/android/app/Activity.html#lfields">Fields</a>
  



  | <a href="http://developer.android.com/reference/android/app/Activity.html#pubctors">Ctors</a>
  



  | <a href="http://developer.android.com/reference/android/app/Activity.html#pubmethods">Methods</a>
  


  | <a href="http://developer.android.com/reference/android/app/Activity.html#promethods">Protected Methods</a>
  


  | <a href="http://developer.android.com/reference/android/app/Activity.html#inhmethods">Inherited Methods</a>

| <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>

</div><!-- end sum-details-links -->
<div class="api-level">
  
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a>
  
  

</div>
</div><!-- end api-info-block -->


<!-- ======== START OF CLASS DATA ======== -->

<div id="jd-header">
    public
     
     
    
    class
<h1 itemprop="name">Activity</h1>



  
  
  

  
  
  

  
  
  

  
    extends <a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html">ContextThemeWrapper</a><br>
  
  
  

  
  
      implements 
      
        <a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html">ComponentCallbacks2</a> 
      
        <a href="http://developer.android.com/reference/android/view/KeyEvent.Callback.html">KeyEvent.Callback</a> 
      
        <a href="http://developer.android.com/reference/android/view/LayoutInflater.Factory2.html">LayoutInflater.Factory2</a> 
      
        <a href="http://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html">View.OnCreateContextMenuListener</a> 
      
        <a href="http://developer.android.com/reference/android/view/Window.Callback.html">Window.Callback</a> 
      
  
  


</div><!-- end header -->

<div id="naMessage"></div>

<div id="jd-content" class="api apilevel-1">
<table class="jd-inheritance-table">


    <tbody><tr>
         	
        <td colspan="5" class="jd-inheritance-class-cell"><a href="http://developer.android.com/reference/java/lang/Object.html">java.lang.Object</a></td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
         	
        <td colspan="4" class="jd-inheritance-class-cell"><a href="http://developer.android.com/reference/android/content/Context.html">android.content.Context</a></td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;</td>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
         	
        <td colspan="3" class="jd-inheritance-class-cell"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html">android.content.ContextWrapper</a></td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;</td>
        
            <td class="jd-inheritance-space">&nbsp;</td>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
         	
        <td colspan="2" class="jd-inheritance-class-cell"><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html">android.view.ContextThemeWrapper</a></td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;</td>
        
            <td class="jd-inheritance-space">&nbsp;</td>
        
            <td class="jd-inheritance-space">&nbsp;</td>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
         	
        <td colspan="1" class="jd-inheritance-class-cell">android.app.Activity</td>
    </tr>
    

</tbody></table>




<table class="jd-sumtable jd-sumtable-subclasses"><tbody><tr><td colspan="12" style="border:none;margin:0;padding:0;">

  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="subclasses-direct" class="jd-expando-trigger closed"><img id="subclasses-direct-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>Known Direct Subclasses

  <div id="subclasses-direct">
      <div id="subclasses-direct-list" class="jd-inheritedlinks">
          
            
              <a href="http://developer.android.com/reference/android/accounts/AccountAuthenticatorActivity.html">AccountAuthenticatorActivity</a>,
            
              <a href="http://developer.android.com/reference/android/app/ActivityGroup.html">ActivityGroup</a>,
            
              <a href="http://developer.android.com/reference/android/app/AliasActivity.html">AliasActivity</a>,
            
              <a href="http://developer.android.com/reference/android/app/ExpandableListActivity.html">ExpandableListActivity</a>,
            
              <a href="http://developer.android.com/reference/android/support/v4/app/FragmentActivity.html">FragmentActivity</a>,
            
              <a href="http://developer.android.com/reference/android/app/ListActivity.html">ListActivity</a>,
            
              <a href="http://developer.android.com/reference/android/app/NativeActivity.html">NativeActivity</a>
            
          
      </div>
      <div id="subclasses-direct-summary" style="display: none;">
  <table class="jd-sumtable-expando">
        <tbody><tr class="alt-color api apilevel-5">
              <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/accounts/AccountAuthenticatorActivity.html">AccountAuthenticatorActivity</a></td>
              <td class="jd-descrcol" width="100%">Base class for implementing an Activity that is used to help implement an
 AbstractAccountAuthenticator.&nbsp;</td>
          </tr>
        <tr class=" api apilevel-1">
              <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/ActivityGroup.html">ActivityGroup</a></td>
              <td class="jd-descrcol" width="100%">
      <em>This class was deprecated
      in API level 13.
      Use the new <code><a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a></code> and <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> APIs
 instead; these are also
 available on older platforms through the Android compatibility package.
</em>&nbsp;</td>
          </tr>
        <tr class="alt-color api apilevel-1">
              <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/AliasActivity.html">AliasActivity</a></td>
              <td class="jd-descrcol" width="100%">Stub activity that launches another activity (and then finishes itself)
 based on information in its component's manifest meta-data.&nbsp;</td>
          </tr>
        <tr class=" api apilevel-1">
              <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/ExpandableListActivity.html">ExpandableListActivity</a></td>
              <td class="jd-descrcol" width="100%">An activity that displays an expandable list of items by binding to a data
 source implementing the ExpandableListAdapter, and exposes event handlers
 when the user selects an item.&nbsp;</td>
          </tr>
        <tr class="alt-color api apilevel-">
              <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/support/v4/app/FragmentActivity.html">FragmentActivity</a></td>
              <td class="jd-descrcol" width="100%">Base class for activities that want to use the support-based
 <code><a href="http://developer.android.com/reference/android/support/v4/app/Fragment.html">Fragment</a></code> and
 <code><a href="http://developer.android.com/reference/android/support/v4/content/Loader.html">Loader</a></code> APIs.&nbsp;</td>
          </tr>
        <tr class=" api apilevel-1">
              <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/ListActivity.html">ListActivity</a></td>
              <td class="jd-descrcol" width="100%">An activity that displays a list of items by binding to a data source such as
 an array or Cursor, and exposes event handlers when the user selects an item.&nbsp;</td>
          </tr>
        <tr class="alt-color api apilevel-9">
              <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/NativeActivity.html">NativeActivity</a></td>
              <td class="jd-descrcol" width="100%">Convenience for implementing an activity that will be implemented
 purely in native code.&nbsp;</td>
          </tr>
  </tbody></table>
      </div>
  </div>
</td></tr></tbody></table>



<table class="jd-sumtable jd-sumtable-subclasses"><tbody><tr><td colspan="12" style="border:none;margin:0;padding:0;">

  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="subclasses-indirect" class="jd-expando-trigger closed"><img id="subclasses-indirect-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>Known Indirect Subclasses

  <div id="subclasses-indirect">
      <div id="subclasses-indirect-list" class="jd-inheritedlinks">
          
            
              <a href="http://developer.android.com/reference/android/app/LauncherActivity.html">LauncherActivity</a>,
            
              <a href="http://developer.android.com/reference/android/preference/PreferenceActivity.html">PreferenceActivity</a>,
            
              <a href="http://developer.android.com/reference/android/app/TabActivity.html">TabActivity</a>
            
          
      </div>
      <div id="subclasses-indirect-summary" style="display: none;">
  <table class="jd-sumtable-expando">
        <tbody><tr class="alt-color api apilevel-1">
              <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/LauncherActivity.html">LauncherActivity</a></td>
              <td class="jd-descrcol" width="100%">Displays a list of all activities which can be performed
 for a given intent.&nbsp;</td>
          </tr>
        <tr class=" api apilevel-1">
              <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/preference/PreferenceActivity.html">PreferenceActivity</a></td>
              <td class="jd-descrcol" width="100%">This is the base class for an activity to show a hierarchy of preferences
 to the user.&nbsp;</td>
          </tr>
        <tr class="alt-color api apilevel-1">
              <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/TabActivity.html">TabActivity</a></td>
              <td class="jd-descrcol" width="100%">
      <em>This class was deprecated
      in API level 13.
      New applications should use Fragments instead of this class;
 to continue to run on older devices, you can use the v4 support library
 which provides a version of the Fragment API that is compatible down to
 <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#DONUT">DONUT</a></code>.
</em>&nbsp;</td>
          </tr>
  </tbody></table>
      </div>
  </div>
</td></tr></tbody></table>


<div class="jd-descr">


<h2 style="margin-bottom: 0px;">Class Overview</h2><hr>
<p itemprop="articleBody">An activity is a single, focused thing that the user can do.  Almost all
 activities interact with the user, so the Activity class takes care of
 creating a window for you in which you can place your UI with
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(android.view.View)">setContentView(View)</a></code>.  While activities are often presented to the user
 as full-screen windows, they can also be used in other ways: as floating
 windows (via a theme with <code><a href="http://developer.android.com/reference/android/R.attr.html#windowIsFloating">windowIsFloating</a></code> set)
 or embedded inside of another activity (using <code><a href="http://developer.android.com/reference/android/app/ActivityGroup.html">ActivityGroup</a></code>).

 There are two methods almost all subclasses of Activity will implement:
 
 </p><ul>
     <li> <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> is where you initialize your activity.  Most
     importantly, here you will usually call <code><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(int)">setContentView(int)</a></code>
     with a layout resource defining your UI, and using <code><a href="http://developer.android.com/reference/android/app/Activity.html#findViewById(int)">findViewById(int)</a></code>
     to retrieve the widgets in that UI that you need to interact with
     programmatically.
 
     </li><li> <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> is where you deal with the user leaving your
     activity.  Most importantly, any changes made by the user should at this
     point be committed (usually to the
     <code><a href="http://developer.android.com/reference/android/content/ContentProvider.html">ContentProvider</a></code> holding the data).
 </li></ul>

 <p>To be of use with <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent)">Context.startActivity()</a></code>, all
 activity classes must have a corresponding
 <code><a href="http://developer.android.com/reference/android/R.styleable.html#AndroidManifestActivity">&lt;activity&gt;</a></code>
 declaration in their package's <code>AndroidManifest.xml</code>.</p>
 
 <p>Topics covered here:
 </p><ol>
 <li><a href="http://developer.android.com/reference/android/app/Activity.html#Fragments">Fragments</a>
 </li><li><a href="http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle">Activity Lifecycle</a>
 </li><li><a href="http://developer.android.com/reference/android/app/Activity.html#ConfigurationChanges">Configuration Changes</a>
 </li><li><a href="http://developer.android.com/reference/android/app/Activity.html#StartingActivities">Starting Activities and Getting Results</a>
 </li><li><a href="http://developer.android.com/reference/android/app/Activity.html#SavingPersistentState">Saving Persistent State</a>
 </li><li><a href="http://developer.android.com/reference/android/app/Activity.html#Permissions">Permissions</a>
 </li><li><a href="http://developer.android.com/reference/android/app/Activity.html#ProcessLifecycle">Process Lifecycle</a>
 </li></ol>

 <div class="special reference">
 <h3>Developer Guides</h3>
 <p>The Activity class is an important part of an application's overall lifecycle,
 and the way activities are launched and put together is a fundamental
 part of the platform's application model. For a detailed perspective on the structure of an
 Android application and how activities behave, please read the
 <a href="http://developer.android.com/guide/topics/fundamentals.html">Application Fundamentals</a> and
 <a href="http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html">Tasks and Back Stack</a>
 developer guides.</p>

 <p>You can also find a detailed discussion about how to create activities in the
 <a href="http://developer.android.com/guide/topics/fundamentals/activities.html">Activities</a>
 developer guide.</p>
 </div>

 <a name="Fragments"></a>
 <h3>Fragments</h3>

 <p>Starting with <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB">HONEYCOMB</a></code>, Activity
 implementations can make use of the <code><a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a></code> class to better
 modularize their code, build more sophisticated user interfaces for larger
 screens, and help scale their application between small and large screens.

 <a name="ActivityLifecycle"></a>
 </p><h3>Activity Lifecycle</h3>

 <p>Activities in the system are managed as an <em>activity stack</em>.
 When a new activity is started, it is placed on the top of the stack
 and becomes the running activity -- the previous activity always remains
 below it in the stack, and will not come to the foreground again until
 the new activity exits.</p>
 
 <p>An activity has essentially four states:</p>
 <ul>
     <li> If an activity in the foreground of the screen (at the top of
         the stack),
         it is <em>active</em> or  <em>running</em>. </li>
     <li>If an activity has lost focus but is still visible (that is, a new non-full-sized
         or transparent activity has focus on top of your activity), it 
         is <em>paused</em>. A paused activity is completely alive (it
         maintains all state and member information and remains attached to
         the window manager), but can be killed by the system in extreme
         low memory situations.
     </li><li>If an activity is completely obscured by another activity,
         it is <em>stopped</em>. It still retains all state and member information,
         however, it is no longer visible to the user so its window is hidden
         and it will often be killed by the system when memory is needed
         elsewhere.</li>
     <li>If an activity is paused or stopped, the system can drop the activity
         from memory by either asking it to finish, or simply killing its
         process.  When it is displayed again to the user, it must be
         completely restarted and restored to its previous state.</li>
 </ul>

 <p>The following diagram shows the important state paths of an Activity.
 The square rectangles represent callback methods you can implement to
 perform operations when the Activity moves between states.  The colored
 ovals are major states the Activity can be in.</p>
 
 <p><img src="./Activity_files/activity_lifecycle.png" alt="State diagram for an Android Activity Lifecycle." border="0"></p>
 
 <p>There are three key loops you may be interested in monitoring within your
 activity:
 
 </p><ul>
 <li>The <b>entire lifetime</b> of an activity happens between the first call
 to <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> through to a single final call
 to <code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code>.  An activity will do all setup
 of "global" state in onCreate(), and release all remaining resources in
 onDestroy().  For example, if it has a thread running in the background
 to download data from the network, it may create that thread in onCreate()
 and then stop the thread in onDestroy().
 
 </li><li>The <b>visible lifetime</b> of an activity happens between a call to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code> until a corresponding call to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code>.  During this time the user can see the
 activity on-screen, though it may not be in the foreground and interacting
 with the user.  Between these two methods you can maintain resources that
 are needed to show the activity to the user.  For example, you can register
 a <code><a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a></code> in onStart() to monitor for changes
 that impact your UI, and unregister it in onStop() when the user no
 longer sees what you are displaying.  The onStart() and onStop() methods
 can be called multiple times, as the activity becomes visible and hidden
 to the user.
 
 </li><li>The <b>foreground lifetime</b> of an activity happens between a call to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code> until a corresponding call to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code>.  During this time the activity is
 in front of all other activities and interacting with the user.  An activity
 can frequently go between the resumed and paused states -- for example when
 the device goes to sleep, when an activity result is delivered, when a new
 intent is delivered -- so the code in these methods should be fairly
 lightweight.
 </li></ul>
 
 <p>The entire lifecycle of an activity is defined by the following
 Activity methods.  All of these are hooks that you can override
 to do appropriate work when the activity changes state.  All
 activities will implement <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code>
 to do their initial setup; many will also implement
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> to commit changes to data and
 otherwise prepare to stop interacting with the user.  You should always
 call up to your superclass when implementing these methods.</p>

 <p></p>
 <pre class="prettyprint"><span class="pln">&nbsp;</span><span class="kwd">public</span><span class="pln"> </span><span class="kwd">class</span><span class="pln"> </span><span class="typ">Activity</span><span class="pln"> </span><span class="kwd">extends</span><span class="pln"> </span><span class="typ">ApplicationContext</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> onCreate</span><span class="pun">(</span><span class="typ">Bundle</span><span class="pln"> savedInstanceState</span><span class="pun">);</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> onStart</span><span class="pun">();</span><span class="pln"><br>&nbsp; &nbsp; &nbsp;<br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> onRestart</span><span class="pun">();</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> onResume</span><span class="pun">();</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> onPause</span><span class="pun">();</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> onStop</span><span class="pun">();</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> onDestroy</span><span class="pun">();</span><span class="pln"><br>&nbsp;</span><span class="pun">}</span><span class="pln"><br>&nbsp;</span></pre>

 <p>In general the movement through an activity's lifecycle looks like
 this:</p>

 <table border="2" width="85%" align="center" frame="hsides" rules="rows">
     <colgroup align="left" span="3">
     </colgroup><colgroup align="left">
     </colgroup><colgroup align="center">
     </colgroup><colgroup align="center">

     </colgroup><thead>
     <tr><th colspan="3">Method</th> <th>Description</th> <th>Killable?</th> <th>Next</th></tr>
     </thead>

     <tbody>
     <tr><th colspan="3" align="left" border="0"><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate()</a></code></th>
         <td>Called when the activity is first created.
             This is where you should do all of your normal static set up:
             create views, bind data to lists, etc.  This method also
             provides you with a Bundle containing the activity's previously
             frozen state, if there was one.
             <p>Always followed by <code>onStart()</code>.</p></td>
         <td align="center">No</td>
         <td align="center"><code>onStart()</code></td>
     </tr>

     <tr><td rowspan="5" style="border-left: none; border-right: none;">&nbsp;&nbsp;&nbsp;&nbsp;</td>
         <th colspan="2" align="left" border="0"><code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestart()">onRestart()</a></code></th>
         <td>Called after your activity has been stopped, prior to it being
             started again.
             <p>Always followed by <code>onStart()</code></p></td>
         <td align="center">No</td>
         <td align="center"><code>onStart()</code></td>
     </tr>

     <tr><th colspan="2" align="left" border="0"><code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code></th>
         <td>Called when the activity is becoming visible to the user.
             <p>Followed by <code>onResume()</code> if the activity comes
             to the foreground, or <code>onStop()</code> if it becomes hidden.</p></td>
         <td align="center">No</td>
         <td align="center"><code>onResume()</code> or <code>onStop()</code></td>
     </tr>

     <tr><td rowspan="2" style="border-left: none;">&nbsp;&nbsp;&nbsp;&nbsp;</td>
         <th align="left" border="0"><code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code></th>
         <td>Called when the activity will start
             interacting with the user.  At this point your activity is at
             the top of the activity stack, with user input going to it.
             <p>Always followed by <code>onPause()</code>.</p></td>
         <td align="center">No</td>
         <td align="center"><code>onPause()</code></td>
     </tr>

     <tr><th align="left" border="0"><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code></th>
         <td>Called when the system is about to start resuming a previous
             activity.  This is typically used to commit unsaved changes to
             persistent data, stop animations and other things that may be consuming
             CPU, etc.  Implementations of this method must be very quick because
             the next activity will not be resumed until this method returns.
             <p>Followed by either <code>onResume()</code> if the activity
             returns back to the front, or <code>onStop()</code> if it becomes
             invisible to the user.</p></td>
         <td align="center"><font color="#800000"><strong>Pre-<code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB">HONEYCOMB</a></code></strong></font></td>
         <td align="center"><code>onResume()</code> or<br>
                 <code>onStop()</code></td>
     </tr>

     <tr><th colspan="2" align="left" border="0"><code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code></th>
         <td>Called when the activity is no longer visible to the user, because
             another activity has been resumed and is covering this one.  This
             may happen either because a new activity is being started, an existing
             one is being brought in front of this one, or this one is being
             destroyed.
             <p>Followed by either <code>onRestart()</code> if
             this activity is coming back to interact with the user, or
             <code>onDestroy()</code> if this activity is going away.</p></td>
         <td align="center"><font color="#800000"><strong>Yes</strong></font></td>
         <td align="center"><code>onRestart()</code> or<br>
                 <code>onDestroy()</code></td>
     </tr>

     <tr><th colspan="3" align="left" border="0"><code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code></th>
         <td>The final call you receive before your
             activity is destroyed.  This can happen either because the
             activity is finishing (someone called <code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code> on
             it, or because the system is temporarily destroying this
             instance of the activity to save space.  You can distinguish
             between these two scenarios with the <code><a href="http://developer.android.com/reference/android/app/Activity.html#isFinishing()">isFinishing()</a></code> method.</td>
         <td align="center"><font color="#800000"><strong>Yes</strong></font></td>
         <td align="center"><em>nothing</em></td>
     </tr>
     </tbody>
 </table>

 <p>Note the "Killable" column in the above table -- for those methods that
 are marked as being killable, after that method returns the process hosting the
 activity may killed by the system <em>at any time</em> without another line
 of its code being executed.  Because of this, you should use the
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> method to write any persistent data (such as user edits)
 to storage.  In addition, the method
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code> is called before placing the activity
 in such a background state, allowing you to save away any dynamic instance
 state in your activity into the given Bundle, to be later received in
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> if the activity needs to be re-created.  
 See the <a href="http://developer.android.com/reference/android/app/Activity.html#ProcessLifecycle">Process Lifecycle</a>
 section for more information on how the lifecycle of a process is tied
 to the activities it is hosting.  Note that it is important to save
 persistent data in <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> instead of <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code>
 because the latter is not part of the lifecycle callbacks, so will not
 be called in every situation as described in its documentation.</p>

 <p class="note">Be aware that these semantics will change slightly between
 applications targeting platforms starting with <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB">HONEYCOMB</a></code>
 vs. those targeting prior platforms.  Starting with Honeycomb, an application
 is not in the killable state until its <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code> has returned.  This
 impacts when <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code> may be called (it may be
 safely called after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> and allows and application to safely
 wait until <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code> to save persistent state.</p>

 <p>For those methods that are not marked as being killable, the activity's
 process will not be killed by the system starting from the time the method
 is called and continuing after it returns.  Thus an activity is in the killable
 state, for example, between after <code>onPause()</code> to the start of
 <code>onResume()</code>.</p>

 <a name="ConfigurationChanges"></a>
 <h3>Configuration Changes</h3>
 
 <p>If the configuration of the device (as defined by the
 <code><a href="http://developer.android.com/reference/android/content/res/Configuration.html">Resources.Configuration</a></code> class) changes,
 then anything displaying a user interface will need to update to match that
 configuration.  Because Activity is the primary mechanism for interacting
 with the user, it includes special support for handling configuration
 changes.</p>
 
 <p>Unless you specify otherwise, a configuration change (such as a change
 in screen orientation, language, input devices, etc) will cause your
 current activity to be <em>destroyed</em>, going through the normal activity
 lifecycle process of <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code>,
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code>, and <code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code> as appropriate.  If the activity
 had been in the foreground or visible to the user, once <code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code> is
 called in that instance then a new instance of the activity will be
 created, with whatever savedInstanceState the previous instance had generated
 from <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code>.</p>
 
 <p>This is done because any application resource,
 including layout files, can change based on any configuration value.  Thus
 the only safe way to handle a configuration change is to re-retrieve all
 resources, including layouts, drawables, and strings.  Because activities
 must already know how to save their state and re-create themselves from
 that state, this is a convenient way to have an activity restart itself
 with a new configuration.</p>
 
 <p>In some special cases, you may want to bypass restarting of your
 activity based on one or more types of configuration changes.  This is
 done with the <code><a href="http://developer.android.com/reference/android/R.attr.html#configChanges">android:configChanges</a></code>
 attribute in its manifest.  For any types of configuration changes you say
 that you handle there, you will receive a call to your current activity's
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)">onConfigurationChanged(Configuration)</a></code> method instead of being restarted.  If
 a configuration change involves any that you do not handle, however, the
 activity will still be restarted and <code><a href="http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)">onConfigurationChanged(Configuration)</a></code>
 will not be called.</p>
 
 <a name="StartingActivities"></a>
 <h3>Starting Activities and Getting Results</h3>

 <p>The <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code>
 method is used to start a
 new activity, which will be placed at the top of the activity stack.  It
 takes a single argument, an <code><a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a></code>,
 which describes the activity
 to be executed.</p>

 <p>Sometimes you want to get a result back from an activity when it
 ends.  For example, you may start an activity that lets the user pick
 a person in a list of contacts; when it ends, it returns the person
 that was selected.  To do this, you call the
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code> 
 version with a second integer parameter identifying the call.  The result 
 will come back through your <code><a href="http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)">onActivityResult(int, int, Intent)</a></code>
 method.</p> 

 <p>When an activity exits, it can call
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#setResult(int)">setResult(int)</a></code>
 to return data back to its parent.  It must always supply a result code,
 which can be the standard results RESULT_CANCELED, RESULT_OK, or any
 custom values starting at RESULT_FIRST_USER.  In addition, it can optionally
 return back an Intent containing any additional data it wants.  All of this
 information appears back on the
 parent's <code>Activity.onActivityResult()</code>, along with the integer
 identifier it originally supplied.</p>

 <p>If a child activity fails for any reason (such as crashing), the parent
 activity will receive a result with the code RESULT_CANCELED.</p>

 <pre class="prettyprint"><span class="pln">&nbsp;</span><span class="kwd">public</span><span class="pln"> </span><span class="kwd">class</span><span class="pln"> </span><span class="typ">MyActivity</span><span class="pln"> </span><span class="kwd">extends</span><span class="pln"> </span><span class="typ">Activity</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp;</span><span class="pun">...</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">static</span><span class="pln"> </span><span class="kwd">final</span><span class="pln"> </span><span class="kwd">int</span><span class="pln"> PICK_CONTACT_REQUEST </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">boolean</span><span class="pln"> onKeyDown</span><span class="pun">(</span><span class="kwd">int</span><span class="pln"> keyCode</span><span class="pun">,</span><span class="pln"> </span><span class="typ">KeyEvent</span><span class="pln"> </span><span class="kwd">event</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">keyCode </span><span class="pun">==</span><span class="pln"> </span><span class="typ">KeyEvent</span><span class="pun">.</span><span class="pln">KEYCODE_DPAD_CENTER</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="com">// When the user center presses, let them pick a contact.</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;startActivityForResult</span><span class="pun">(</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="kwd">new</span><span class="pln"> </span><span class="typ">Intent</span><span class="pun">(</span><span class="typ">Intent</span><span class="pun">.</span><span class="pln">ACTION_PICK</span><span class="pun">,</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="kwd">new</span><span class="pln"> </span><span class="typ">Uri</span><span class="pun">(</span><span class="str">"content://contacts"</span><span class="pun">)),</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PICK_CONTACT_REQUEST</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">;</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="pun">}</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">;</span><span class="pln"><br>&nbsp; &nbsp; &nbsp;</span><span class="pun">}</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> onActivityResult</span><span class="pun">(</span><span class="kwd">int</span><span class="pln"> requestCode</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">int</span><span class="pln"> resultCode</span><span class="pun">,</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="typ">Intent</span><span class="pln"> data</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">requestCode </span><span class="pun">==</span><span class="pln"> PICK_CONTACT_REQUEST</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">resultCode </span><span class="pun">==</span><span class="pln"> RESULT_OK</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="com">// A contact was picked. &nbsp;Here we will just display it</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="com">// to the user.</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;startActivity</span><span class="pun">(</span><span class="kwd">new</span><span class="pln"> </span><span class="typ">Intent</span><span class="pun">(</span><span class="typ">Intent</span><span class="pun">.</span><span class="pln">ACTION_VIEW</span><span class="pun">,</span><span class="pln"> data</span><span class="pun">));</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="pun">}</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="pun">}</span><span class="pln"><br>&nbsp; &nbsp; &nbsp;</span><span class="pun">}</span><span class="pln"><br>&nbsp;</span><span class="pun">}</span><span class="pln"><br>&nbsp;</span></pre>

 <a name="SavingPersistentState"></a>
 <h3>Saving Persistent State</h3>

 <p>There are generally two kinds of persistent state than an activity
 will deal with: shared document-like data (typically stored in a SQLite
 database using a <code><a href="http://developer.android.com/reference/android/content/ContentProvider.html">content provider</a></code>)
 and internal state such as user preferences.</p>

 <p>For content provider data, we suggest that activities use a
 "edit in place" user model.  That is, any edits a user makes are effectively
 made immediately without requiring an additional confirmation step.
 Supporting this model is generally a simple matter of following two rules:</p>

 <ul>
     <li> <p>When creating a new document, the backing database entry or file for
             it is created immediately.  For example, if the user chooses to write
             a new e-mail, a new entry for that e-mail is created as soon as they
             start entering data, so that if they go to any other activity after
             that point this e-mail will now appear in the list of drafts.</p>
     </li><li> <p>When an activity's <code>onPause()</code> method is called, it should
             commit to the backing content provider or file any changes the user
             has made.  This ensures that those changes will be seen by any other
             activity that is about to run.  You will probably want to commit
             your data even more aggressively at key times during your
             activity's lifecycle: for example before starting a new
             activity, before finishing your own activity, when the user
             switches between input fields, etc.</p>
 </li></ul>

 <p>This model is designed to prevent data loss when a user is navigating
 between activities, and allows the system to safely kill an activity (because
 system resources are needed somewhere else) at any time after it has been
 paused.  Note this implies
 that the user pressing BACK from your activity does <em>not</em>
 mean "cancel" -- it means to leave the activity with its current contents
 saved away.  Canceling edits in an activity must be provided through
 some other mechanism, such as an explicit "revert" or "undo" option.</p>

 <p>See the <code><a href="http://developer.android.com/reference/android/content/ContentProvider.html">content package</a></code> for
 more information about content providers.  These are a key aspect of how
 different activities invoke and propagate data between themselves.</p>

 <p>The Activity class also provides an API for managing internal persistent state
 associated with an activity.  This can be used, for example, to remember
 the user's preferred initial display in a calendar (day view or week view)
 or the user's default home page in a web browser.</p>

 <p>Activity persistent state is managed
 with the method <code><a href="http://developer.android.com/reference/android/app/Activity.html#getPreferences(int)">getPreferences(int)</a></code>,
 allowing you to retrieve and
 modify a set of name/value pairs associated with the activity.  To use
 preferences that are shared across multiple application components
 (activities, receivers, services, providers), you can use the underlying
 <code><a href="http://developer.android.com/reference/android/content/Context.html#getSharedPreferences(java.lang.String, int)">Context.getSharedPreferences()</a></code> method
 to retrieve a preferences
 object stored under a specific name.
 (Note that it is not possible to share settings data across application
 packages -- for that you will need a content provider.)</p>

 <p>Here is an excerpt from a calendar activity that stores the user's
 preferred view mode in its persistent settings:</p>

 <pre class="prettyprint"><span class="pln">&nbsp;</span><span class="kwd">public</span><span class="pln"> </span><span class="kwd">class</span><span class="pln"> </span><span class="typ">CalendarActivity</span><span class="pln"> </span><span class="kwd">extends</span><span class="pln"> </span><span class="typ">Activity</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp;</span><span class="pun">...</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">static</span><span class="pln"> </span><span class="kwd">final</span><span class="pln"> </span><span class="kwd">int</span><span class="pln"> DAY_VIEW_MODE </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln"><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">static</span><span class="pln"> </span><span class="kwd">final</span><span class="pln"> </span><span class="kwd">int</span><span class="pln"> WEEK_VIEW_MODE </span><span class="pun">=</span><span class="pln"> </span><span class="lit">1</span><span class="pun">;</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">private</span><span class="pln"> </span><span class="typ">SharedPreferences</span><span class="pln"> mPrefs</span><span class="pun">;</span><span class="pln"><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">private</span><span class="pln"> </span><span class="kwd">int</span><span class="pln"> mCurViewMode</span><span class="pun">;</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> onCreate</span><span class="pun">(</span><span class="typ">Bundle</span><span class="pln"> savedInstanceState</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="kwd">super</span><span class="pun">.</span><span class="pln">onCreate</span><span class="pun">(</span><span class="pln">savedInstanceState</span><span class="pun">);</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="typ">SharedPreferences</span><span class="pln"> mPrefs </span><span class="pun">=</span><span class="pln"> getSharedPreferences</span><span class="pun">();</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mCurViewMode </span><span class="pun">=</span><span class="pln"> mPrefs</span><span class="pun">.</span><span class="pln">getInt</span><span class="pun">(</span><span class="str">"view_mode"</span><span class="pun">,</span><span class="pln"> DAY_VIEW_MODE</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; &nbsp;</span><span class="pun">}</span><span class="pln"><br><br>&nbsp; &nbsp; &nbsp;</span><span class="kwd">protected</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> onPause</span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="kwd">super</span><span class="pun">.</span><span class="pln">onPause</span><span class="pun">();</span><span class="pln"><br>&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="typ">SharedPreferences</span><span class="pun">.</span><span class="typ">Editor</span><span class="pln"> ed </span><span class="pun">=</span><span class="pln"> mPrefs</span><span class="pun">.</span><span class="pln">edit</span><span class="pun">();</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ed</span><span class="pun">.</span><span class="pln">putInt</span><span class="pun">(</span><span class="str">"view_mode"</span><span class="pun">,</span><span class="pln"> mCurViewMode</span><span class="pun">);</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ed</span><span class="pun">.</span><span class="pln">commit</span><span class="pun">();</span><span class="pln"><br>&nbsp; &nbsp; &nbsp;</span><span class="pun">}</span><span class="pln"><br>&nbsp;</span><span class="pun">}</span><span class="pln"><br>&nbsp;</span></pre>
 
 <a name="Permissions"></a>
 <h3>Permissions</h3>
 
 <p>The ability to start a particular Activity can be enforced when it is
 declared in its
 manifest's <code><a href="http://developer.android.com/reference/android/R.styleable.html#AndroidManifestActivity">&lt;activity&gt;</a></code>
 tag.  By doing so, other applications will need to declare a corresponding
 <code><a href="http://developer.android.com/reference/android/R.styleable.html#AndroidManifestUsesPermission">&lt;uses-permission&gt;</a></code>
 element in their own manifest to be able to start that activity.

 </p><p>When starting an Activity you can set <code><a href="http://developer.android.com/reference/android/content/Intent.html#FLAG_GRANT_READ_URI_PERMISSION">Intent.FLAG_GRANT_READ_URI_PERMISSION</a></code> and/or <code><a href="http://developer.android.com/reference/android/content/Intent.html#FLAG_GRANT_WRITE_URI_PERMISSION">Intent.FLAG_GRANT_WRITE_URI_PERMISSION</a></code> on the Intent.  This will grant the
 Activity access to the specific URIs in the Intent.  Access will remain
 until the Activity has finished (it will remain across the hosting
 process being killed and other temporary destruction).  As of
 <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#GINGERBREAD">GINGERBREAD</a></code>, if the Activity
 was already created and a new Intent is being delivered to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent)">onNewIntent(Intent)</a></code>, any newly granted URI permissions will be added
 to the existing ones it holds.

 </p><p>See the <a href="http://developer.android.com/guide/topics/security/security.html">Security and Permissions</a>
 document for more information on permissions and security in general.
 
 <a name="ProcessLifecycle"></a>
 </p><h3>Process Lifecycle</h3>
 
 <p>The Android system attempts to keep application process around for as
 long as possible, but eventually will need to remove old processes when
 memory runs low.  As described in <a href="http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle">Activity
 Lifecycle</a>, the decision about which process to remove is intimately
 tied to the state of the user's interaction with it.  In general, there
 are four states a process can be in based on the activities running in it,
 listed here in order of importance.  The system will kill less important
 processes (the last ones) before it resorts to killing more important
 processes (the first ones).
 
 </p><ol>
 <li> <p>The <b>foreground activity</b> (the activity at the top of the screen
 that the user is currently interacting with) is considered the most important.
 Its process will only be killed as a last resort, if it uses more memory
 than is available on the device.  Generally at this point the device has
 reached a memory paging state, so this is required in order to keep the user
 interface responsive.
 </p></li><li> <p>A <b>visible activity</b> (an activity that is visible to the user
 but not in the foreground, such as one sitting behind a foreground dialog)
 is considered extremely important and will not be killed unless that is
 required to keep the foreground activity running.
 </p></li><li> <p>A <b>background activity</b> (an activity that is not visible to
 the user and has been paused) is no longer critical, so the system may
 safely kill its process to reclaim memory for other foreground or
 visible processes.  If its process needs to be killed, when the user navigates
 back to the activity (making it visible on the screen again), its
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> method will be called with the savedInstanceState it had previously
 supplied in <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code> so that it can restart itself in the same
 state as the user last left it.
 </p></li><li> <p>An <b>empty process</b> is one hosting no activities or other
 application components (such as <code><a href="http://developer.android.com/reference/android/app/Service.html">Service</a></code> or
 <code><a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a></code> classes).  These are killed very
 quickly by the system as memory becomes low.  For this reason, any
 background operation you do outside of an activity must be executed in the
 context of an activity BroadcastReceiver or Service to ensure that the system
 knows it needs to keep your process around.
 </p></li></ol>
 
 <p>Sometimes an Activity may need to do a long-running operation that exists
 independently of the activity lifecycle itself.  An example may be a camera
 application that allows you to upload a picture to a web site.  The upload
 may take a long time, and the application should allow the user to leave
 the application will it is executing.  To accomplish this, your Activity
 should start a <code><a href="http://developer.android.com/reference/android/app/Service.html">Service</a></code> in which the upload takes place.  This allows
 the system to properly prioritize your process (considering it to be more
 important than other non-visible applications) for the duration of the
 upload, independent of whether the original activity is paused, stopped,
 or finished.
</p>





</div><!-- jd-descr -->
















<div class="jd-descr">


<h2 style="margin-bottom: 0px;">Summary</h2><hr>













<!-- =========== ENUM CONSTANT SUMMARY =========== -->
<table id="constants" class="jd-sumtable"><tbody><tr><th colspan="12">Constants</th></tr>


    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_DIALER">DEFAULT_KEYS_DIALER</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to launch the dialer during default
 key handling.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_DISABLE">DEFAULT_KEYS_DISABLE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to turn off default handling of
 keys.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SEARCH_GLOBAL">DEFAULT_KEYS_SEARCH_GLOBAL</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to specify that unhandled keystrokes
 will start a global search (typically web search, but some platforms may define alternate
 methods for global search)
 
 <p>See <code><a href="http://developer.android.com/reference/android/app/SearchManager.html">android.app.SearchManager</a></code> for more details.</p></td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SEARCH_LOCAL">DEFAULT_KEYS_SEARCH_LOCAL</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to specify that unhandled keystrokes
 will start an application-defined search.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SHORTCUT">DEFAULT_KEYS_SHORTCUT</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to execute a menu shortcut in
 default key handling.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED">RESULT_CANCELED</a></td>
        <td class="jd-descrcol" width="100%">Standard activity result: operation canceled.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/Activity.html#RESULT_FIRST_USER">RESULT_FIRST_USER</a></td>
        <td class="jd-descrcol" width="100%">Start of user-defined activity results.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/Activity.html#RESULT_OK">RESULT_OK</a></td>
        <td class="jd-descrcol" width="100%">Standard activity result: operation succeeded.</td>
    </tr>
    
    

</tbody></table>





<!-- =========== ENUM CONSTANT SUMMARY =========== -->
<table id="inhconstants" class="jd-sumtable"><tbody><tr><th>
  <a href="http://developer.android.com/reference/android/app/Activity.html#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
  <div style="clear:left;">Inherited Constants</div></th></tr>






<tr class="api apilevel-">
<td colspan="12">

  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-constants-android.content.Context" class="jd-expando-trigger closed"><img id="inherited-constants-android.content.Context-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>From class
<a href="http://developer.android.com/reference/android/content/Context.html">android.content.Context</a>
<div id="inherited-constants-android.content.Context">
  <div id="inherited-constants-android.content.Context-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-constants-android.content.Context-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    

    
    <tbody><tr class="alt-color api apilevel-4">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#ACCESSIBILITY_SERVICE">ACCESSIBILITY_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/view/accessibility/AccessibilityManager.html">AccessibilityManager</a></code> for giving the user
 feedback for UI events through the registered event listeners.</td>
    </tr>
    
    
    <tr class=" api apilevel-5">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#ACCOUNT_SERVICE">ACCOUNT_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/accounts/AccountManager.html">AccountManager</a></code> for receiving intents at a
 time of your choosing.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#ACTIVITY_SERVICE">ACTIVITY_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/app/ActivityManager.html">ActivityManager</a></code> for interacting with the global
 system state.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#ALARM_SERVICE">ALARM_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/app/AlarmManager.html">AlarmManager</a></code> for receiving intents at a
 time of your choosing.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#AUDIO_SERVICE">AUDIO_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/media/AudioManager.html">AudioManager</a></code> for handling management of volume,
 ringer modes and audio routing.</td>
    </tr>
    
    
    <tr class=" api apilevel-14">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#BIND_ABOVE_CLIENT">BIND_ABOVE_CLIENT</a></td>
        <td class="jd-descrcol" width="100%">Flag for <code><a href="http://developer.android.com/reference/android/content/Context.html#bindService(android.content.Intent, android.content.ServiceConnection, int)">bindService(Intent, ServiceConnection, int)</a></code>: indicates that the client application
 binding to this service considers the service to be more important than
 the app itself.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-14">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#BIND_ADJUST_WITH_ACTIVITY">BIND_ADJUST_WITH_ACTIVITY</a></td>
        <td class="jd-descrcol" width="100%">Flag for <code><a href="http://developer.android.com/reference/android/content/Context.html#bindService(android.content.Intent, android.content.ServiceConnection, int)">bindService(Intent, ServiceConnection, int)</a></code>: If binding from an activity, allow the
 target service's process importance to be raised based on whether the
 activity is visible to the user, regardless whether another flag is
 used to reduce the amount that the client process's overall importance
 is used to impact it.</td>
    </tr>
    
    
    <tr class=" api apilevel-14">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#BIND_ALLOW_OOM_MANAGEMENT">BIND_ALLOW_OOM_MANAGEMENT</a></td>
        <td class="jd-descrcol" width="100%">Flag for <code><a href="http://developer.android.com/reference/android/content/Context.html#bindService(android.content.Intent, android.content.ServiceConnection, int)">bindService(Intent, ServiceConnection, int)</a></code>: allow the process hosting the bound
 service to go through its normal memory management.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#BIND_AUTO_CREATE">BIND_AUTO_CREATE</a></td>
        <td class="jd-descrcol" width="100%">Flag for <code><a href="http://developer.android.com/reference/android/content/Context.html#bindService(android.content.Intent, android.content.ServiceConnection, int)">bindService(Intent, ServiceConnection, int)</a></code>: automatically create the service as long
 as the binding exists.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#BIND_DEBUG_UNBIND">BIND_DEBUG_UNBIND</a></td>
        <td class="jd-descrcol" width="100%">Flag for <code><a href="http://developer.android.com/reference/android/content/Context.html#bindService(android.content.Intent, android.content.ServiceConnection, int)">bindService(Intent, ServiceConnection, int)</a></code>: include debugging help for mismatched
 calls to unbind.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-14">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#BIND_IMPORTANT">BIND_IMPORTANT</a></td>
        <td class="jd-descrcol" width="100%">Flag for <code><a href="http://developer.android.com/reference/android/content/Context.html#bindService(android.content.Intent, android.content.ServiceConnection, int)">bindService(Intent, ServiceConnection, int)</a></code>: this service is very important to
 the client, so should be brought to the foreground process level
 when the client is.</td>
    </tr>
    
    
    <tr class=" api apilevel-8">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#BIND_NOT_FOREGROUND">BIND_NOT_FOREGROUND</a></td>
        <td class="jd-descrcol" width="100%">Flag for <code><a href="http://developer.android.com/reference/android/content/Context.html#bindService(android.content.Intent, android.content.ServiceConnection, int)">bindService(Intent, ServiceConnection, int)</a></code>: don't allow this binding to raise
 the target service's process to the foreground scheduling priority.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-14">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#BIND_WAIVE_PRIORITY">BIND_WAIVE_PRIORITY</a></td>
        <td class="jd-descrcol" width="100%">Flag for <code><a href="http://developer.android.com/reference/android/content/Context.html#bindService(android.content.Intent, android.content.ServiceConnection, int)">bindService(Intent, ServiceConnection, int)</a></code>: don't impact the scheduling or
 memory management priority of the target service's hosting process.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#CLIPBOARD_SERVICE">CLIPBOARD_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/text/ClipboardManager.html">ClipboardManager</a></code> for accessing and modifying
 the contents of the global clipboard.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#CONNECTIVITY_SERVICE">CONNECTIVITY_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a <code><a href="http://developer.android.com/reference/android/net/ConnectivityManager.html">ConnectivityManager</a></code> for handling management of
 network connections.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#CONTEXT_IGNORE_SECURITY">CONTEXT_IGNORE_SECURITY</a></td>
        <td class="jd-descrcol" width="100%">Flag for use with <code><a href="http://developer.android.com/reference/android/content/Context.html#createPackageContext(java.lang.String, int)">createPackageContext(String, int)</a></code>: ignore any security
 restrictions on the Context being requested, allowing it to always
 be loaded.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#CONTEXT_INCLUDE_CODE">CONTEXT_INCLUDE_CODE</a></td>
        <td class="jd-descrcol" width="100%">Flag for use with <code><a href="http://developer.android.com/reference/android/content/Context.html#createPackageContext(java.lang.String, int)">createPackageContext(String, int)</a></code>: include the application
 code with the context.</td>
    </tr>
    
    
    <tr class=" api apilevel-4">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#CONTEXT_RESTRICTED">CONTEXT_RESTRICTED</a></td>
        <td class="jd-descrcol" width="100%">Flag for use with <code><a href="http://developer.android.com/reference/android/content/Context.html#createPackageContext(java.lang.String, int)">createPackageContext(String, int)</a></code>: a restricted context may
 disable specific features.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-8">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#DEVICE_POLICY_SERVICE">DEVICE_POLICY_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html">DevicePolicyManager</a></code> for working with global
 device policy management.</td>
    </tr>
    
    
    <tr class=" api apilevel-17">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#DISPLAY_SERVICE">DISPLAY_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/hardware/display/DisplayManager.html">DisplayManager</a></code> for interacting with display devices.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-9">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#DOWNLOAD_SERVICE">DOWNLOAD_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/app/DownloadManager.html">DownloadManager</a></code> for requesting HTTP downloads.</td>
    </tr>
    
    
    <tr class=" api apilevel-8">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#DROPBOX_SERVICE">DROPBOX_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/os/DropBoxManager.html">DropBoxManager</a></code> instance for recording
 diagnostic logs.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-3">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#INPUT_METHOD_SERVICE">INPUT_METHOD_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html">InputMethodManager</a></code> for accessing input
 methods.</td>
    </tr>
    
    
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#INPUT_SERVICE">INPUT_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/hardware/input/InputManager.html">InputManager</a></code> for interacting with input devices.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#KEYGUARD_SERVICE">KEYGUARD_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/app/NotificationManager.html">NotificationManager</a></code> for controlling keyguard.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#LAYOUT_INFLATER_SERVICE">LAYOUT_INFLATER_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/view/LayoutInflater.html">LayoutInflater</a></code> for inflating layout resources in this
 context.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#LOCATION_SERVICE">LOCATION_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a <code><a href="http://developer.android.com/reference/android/location/LocationManager.html">LocationManager</a></code> for controlling location
 updates.</td>
    </tr>
    
    
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#MEDIA_ROUTER_SERVICE">MEDIA_ROUTER_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/media/MediaRouter.html">MediaRouter</a></code> for controlling and managing
 routing of media.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#MODE_APPEND">MODE_APPEND</a></td>
        <td class="jd-descrcol" width="100%">File creation mode: for use with <code><a href="http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String, int)">openFileOutput(String, int)</a></code>, if the file
 already exists then write data to the end of the existing file
 instead of erasing it.</td>
    </tr>
    
    
    <tr class=" api apilevel-16">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#MODE_ENABLE_WRITE_AHEAD_LOGGING">MODE_ENABLE_WRITE_AHEAD_LOGGING</a></td>
        <td class="jd-descrcol" width="100%">Database open flag: when set, the database is opened with write-ahead
 logging enabled by default.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#MODE_MULTI_PROCESS">MODE_MULTI_PROCESS</a></td>
        <td class="jd-descrcol" width="100%">SharedPreference loading flag: when set, the file on disk will
 be checked for modification even if the shared preferences
 instance is already loaded in this process.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#MODE_PRIVATE">MODE_PRIVATE</a></td>
        <td class="jd-descrcol" width="100%">File creation mode: the default mode, where the created file can only
 be accessed by the calling application (or all applications sharing the
 same user ID).</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#MODE_WORLD_READABLE">MODE_WORLD_READABLE</a></td>
        <td class="jd-descrcol" width="100%">
      <em>This constant was deprecated
      in API level 17.
      Creating world-readable files is very dangerous, and likely
 to cause security holes in applications.  It is strongly discouraged;
 instead, applications should use more formal mechanism for interactions
 such as <code><a href="http://developer.android.com/reference/android/content/ContentProvider.html">ContentProvider</a></code>, <code><a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a></code>, and
 <code><a href="http://developer.android.com/reference/android/app/Service.html">Service</a></code>.  There are no guarantees that this
 access mode will remain on a file, such as when it goes through a
 backup and restore.
 File creation mode: allow all other applications to have read access
 to the created file.</em></td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#MODE_WORLD_WRITEABLE">MODE_WORLD_WRITEABLE</a></td>
        <td class="jd-descrcol" width="100%">
      <em>This constant was deprecated
      in API level 17.
      Creating world-writable files is very dangerous, and likely
 to cause security holes in applications.  It is strongly discouraged;
 instead, applications should use more formal mechanism for interactions
 such as <code><a href="http://developer.android.com/reference/android/content/ContentProvider.html">ContentProvider</a></code>, <code><a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a></code>, and
 <code><a href="http://developer.android.com/reference/android/app/Service.html">Service</a></code>.  There are no guarantees that this
 access mode will remain on a file, such as when it goes through a
 backup and restore.
 File creation mode: allow all other applications to have write access
 to the created file.</em></td>
    </tr>
    
    
    <tr class="alt-color api apilevel-10">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#NFC_SERVICE">NFC_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/nfc/NfcManager.html">NfcManager</a></code> for using NFC.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#NOTIFICATION_SERVICE">NOTIFICATION_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/app/NotificationManager.html">NotificationManager</a></code> for informing the user of
 background events.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#NSD_SERVICE">NSD_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a <code><a href="http://developer.android.com/reference/android/net/nsd/NsdManager.html">NsdManager</a></code> for handling management of network service
 discovery</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#POWER_SERVICE">POWER_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/os/PowerManager.html">PowerManager</a></code> for controlling power management,
 including "wake locks," which let you keep the device on while
 you're running long tasks.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#SEARCH_SERVICE">SEARCH_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a <code><a href="http://developer.android.com/reference/android/app/SearchManager.html">SearchManager</a></code> for handling searches.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#SENSOR_SERVICE">SENSOR_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a <code><a href="http://developer.android.com/reference/android/hardware/SensorManager.html">SensorManager</a></code> for accessing sensors.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-9">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#STORAGE_SERVICE">STORAGE_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a <code><a href="http://developer.android.com/reference/android/os/storage/StorageManager.html">StorageManager</a></code> for accessing system storage
 functions.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#TELEPHONY_SERVICE">TELEPHONY_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/telephony/TelephonyManager.html">TelephonyManager</a></code> for handling management the
 telephony features of the device.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-14">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#TEXT_SERVICES_MANAGER_SERVICE">TEXT_SERVICES_MANAGER_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/view/textservice/TextServicesManager.html">TextServicesManager</a></code> for accessing
 text services.</td>
    </tr>
    
    
    <tr class=" api apilevel-8">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#UI_MODE_SERVICE">UI_MODE_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/app/UiModeManager.html">UiModeManager</a></code> for controlling UI modes.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-12">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#USB_SERVICE">USB_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a <code><a href="http://developer.android.com/reference/android/hardware/usb/UsbManager.html">UsbManager</a></code> for access to USB devices (as a USB host)
 and for controlling this device's behavior as a USB device.</td>
    </tr>
    
    
    <tr class=" api apilevel-17">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#USER_SERVICE">USER_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/os/UserManager.html">UserManager</a></code> for managing users on devices that support multiple users.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#VIBRATOR_SERVICE">VIBRATOR_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a <code><a href="http://developer.android.com/reference/android/os/Vibrator.html">Vibrator</a></code> for interacting with the vibration hardware.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#WALLPAPER_SERVICE">WALLPAPER_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 com.android.server.WallpaperService for accessing wallpapers.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-14">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#WIFI_P2P_SERVICE">WIFI_P2P_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a <code><a href="http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.html">WifiP2pManager</a></code> for handling management of
 Wi-Fi peer-to-peer connections.</td>
    </tr>
    
    
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#WIFI_SERVICE">WIFI_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a <code><a href="http://developer.android.com/reference/android/net/wifi/WifiManager.html">WifiManager</a></code> for handling management of
 Wi-Fi access.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><a href="http://developer.android.com/reference/java/lang/String.html">String</a></td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/Context.html#WINDOW_SERVICE">WINDOW_SERVICE</a></td>
        <td class="jd-descrcol" width="100%">Use with <code><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService(String)</a></code> to retrieve a
 <code><a href="http://developer.android.com/reference/android/view/WindowManager.html">WindowManager</a></code> for accessing the system's window
 manager.</td>
    </tr>
    
    
</tbody></table>
  </div>
</div>
</td></tr>







<tr class="api apilevel-">
<td colspan="12">

  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-constants-android.content.ComponentCallbacks2" class="jd-expando-trigger closed"><img id="inherited-constants-android.content.ComponentCallbacks2-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>From interface
<a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html">android.content.ComponentCallbacks2</a>
<div id="inherited-constants-android.content.ComponentCallbacks2">
  <div id="inherited-constants-android.content.ComponentCallbacks2-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-constants-android.content.ComponentCallbacks2-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    

    
    <tbody><tr class="alt-color api apilevel-14">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_BACKGROUND">TRIM_MEMORY_BACKGROUND</a></td>
        <td class="jd-descrcol" width="100%">Level for <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process has gone on to the
 LRU list.</td>
    </tr>
    
    
    <tr class=" api apilevel-14">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_COMPLETE">TRIM_MEMORY_COMPLETE</a></td>
        <td class="jd-descrcol" width="100%">Level for <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is nearing the end
 of the background LRU list, and if more memory isn't found soon it will
 be killed.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-14">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_MODERATE">TRIM_MEMORY_MODERATE</a></td>
        <td class="jd-descrcol" width="100%">Level for <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is around the middle
 of the background LRU list; freeing memory can help the system keep
 other processes running later in the list for better overall performance.</td>
    </tr>
    
    
    <tr class=" api apilevel-16">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_CRITICAL">TRIM_MEMORY_RUNNING_CRITICAL</a></td>
        <td class="jd-descrcol" width="100%">Level for <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is not an expendable
 background process, but the device is running extremely low on memory
 and is about to not be able to keep any background processes running.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_LOW">TRIM_MEMORY_RUNNING_LOW</a></td>
        <td class="jd-descrcol" width="100%">Level for <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is not an expendable
 background process, but the device is running low on memory.</td>
    </tr>
    
    
    <tr class=" api apilevel-16">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_MODERATE">TRIM_MEMORY_RUNNING_MODERATE</a></td>
        <td class="jd-descrcol" width="100%">Level for <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is not an expendable
 background process, but the device is running moderately low on memory.</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-14">
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_UI_HIDDEN">TRIM_MEMORY_UI_HIDDEN</a></td>
        <td class="jd-descrcol" width="100%">Level for <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process had been showing
 a user interface, and is no longer doing so.</td>
    </tr>
    
    
</tbody></table>
  </div>
</div>
</td></tr>












</tbody></table>




<!-- =========== FIELD SUMMARY =========== -->
<table id="lfields" class="jd-sumtable"><tbody><tr><th colspan="12">Fields</th></tr>


    
      <tr class="alt-color api apilevel-1">
          <td class="jd-typecol"><nobr>
          protected
          static
          final
          int[]</nobr></td>
          <td class="jd-linkcol"><a href="http://developer.android.com/reference/android/app/Activity.html#FOCUSED_STATE_SET">FOCUSED_STATE_SET</a></td>
          <td class="jd-descrcol" width="100%"></td>
      </tr>
      
    

</tbody></table>







<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<table id="pubctors" class="jd-sumtable"><tbody><tr><th colspan="12">Public Constructors</th></tr>



	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            </nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#Activity()">Activity</a></span>()</nobr>
        
  </td></tr>



</tbody></table>






<!-- ========== METHOD SUMMARY =========== -->
<table id="pubmethods" class="jd-sumtable"><tbody><tr><th colspan="12">Public Methods</th></tr>



	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#addContentView(android.view.View, android.view.ViewGroup.LayoutParams)">addContentView</a></span>(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view, <a href="http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html">ViewGroup.LayoutParams</a> params)</nobr>
        
        <div class="jd-descrdiv">Add an additional content view to the activity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-3">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#closeContextMenu()">closeContextMenu</a></span>()</nobr>
        
        <div class="jd-descrdiv">Programmatically closes the most recently opened context menu, if showing.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#closeOptionsMenu()">closeOptionsMenu</a></span>()</nobr>
        
        <div class="jd-descrdiv">Progammatically closes the options menu.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/app/PendingIntent.html">PendingIntent</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#createPendingResult(int, android.content.Intent, int)">createPendingResult</a></span>(int requestCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> data, int flags)</nobr>
        
        <div class="jd-descrdiv">Create a new PendingIntent object which you can hand to others 
 for them to use to send result data back to your 
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)">onActivityResult(int, int, Intent)</a></code> callback.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#dismissDialog(int)">dismissDialog</a></span>(int id)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 13.
      Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-12">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#dispatchGenericMotionEvent(android.view.MotionEvent)">dispatchGenericMotionEvent</a></span>(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> ev)</nobr>
        
        <div class="jd-descrdiv">Called to process generic motion events.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#dispatchKeyEvent(android.view.KeyEvent)">dispatchKeyEvent</a></span>(<a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called to process key events.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#dispatchKeyShortcutEvent(android.view.KeyEvent)">dispatchKeyShortcutEvent</a></span>(<a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called to process a key shortcut event.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-4">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)">dispatchPopulateAccessibilityEvent</a></span>(<a href="http://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html">AccessibilityEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called to process population of <code><a href="http://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html">AccessibilityEvent</a></code>s.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#dispatchTouchEvent(android.view.MotionEvent)">dispatchTouchEvent</a></span>(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> ev)</nobr>
        
        <div class="jd-descrdiv">Called to process touch screen events.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#dispatchTrackballEvent(android.view.MotionEvent)">dispatchTrackballEvent</a></span>(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> ev)</nobr>
        
        <div class="jd-descrdiv">Called to process trackball events.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#dump(java.lang.String, java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[])">dump</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> prefix, <a href="http://developer.android.com/reference/java/io/FileDescriptor.html">FileDescriptor</a> fd, <a href="http://developer.android.com/reference/java/io/PrintWriter.html">PrintWriter</a> writer, <a href="http://developer.android.com/reference/java/lang/String.html">String[]</a> args)</nobr>
        
        <div class="jd-descrdiv">Print the Activity's state into the given stream.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/View.html">View</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#findViewById(int)">findViewById</a></span>(int id)</nobr>
        
        <div class="jd-descrdiv">Finds a view that was identified by the id attribute from the XML that
 was processed in <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish</a></span>()</nobr>
        
        <div class="jd-descrdiv">Call this when your activity is done and should be closed.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#finishActivity(int)">finishActivity</a></span>(int requestCode)</nobr>
        
        <div class="jd-descrdiv">Force finish another activity that you had previously started with
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#finishActivityFromChild(android.app.Activity, int)">finishActivityFromChild</a></span>(<a href="./Activity_files/Activity.htm">Activity</a> child, int requestCode)</nobr>
        
        <div class="jd-descrdiv">This is called when a child activity of this one calls its
 finishActivity().</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#finishAffinity()">finishAffinity</a></span>()</nobr>
        
        <div class="jd-descrdiv">Finish this activity as well as all activities immediately below it
 in the current task that have the same affinity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#finishFromChild(android.app.Activity)">finishFromChild</a></span>(<a href="./Activity_files/Activity.htm">Activity</a> child)</nobr>
        
        <div class="jd-descrdiv">This is called when a child activity of this one calls its 
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code> method.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/app/ActionBar.html">ActionBar</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getActionBar()">getActionBar</a></span>()</nobr>
        
        <div class="jd-descrdiv">Retrieve a reference to this activity's ActionBar.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/android/app/Application.html">Application</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getApplication()">getApplication</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the application that owns this activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/ComponentName.html">ComponentName</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getCallingActivity()">getCallingActivity</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the name of the activity that invoked this activity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getCallingPackage()">getCallingPackage</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the name of the package that invoked this activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getChangingConfigurations()">getChangingConfigurations</a></span>()</nobr>
        
        <div class="jd-descrdiv">If this activity is being destroyed because it can not handle a
 configuration parameter being changed (and thus its
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)">onConfigurationChanged(Configuration)</a></code> method is
 <em>not</em> being called), then you can use this method to discover
 the set of changes that have occurred while in the process of being
 destroyed.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/ComponentName.html">ComponentName</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getComponentName()">getComponentName</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns complete component name of this activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/View.html">View</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getCurrentFocus()">getCurrentFocus</a></span>()</nobr>
        
        <div class="jd-descrdiv">Calls <code><a href="http://developer.android.com/reference/android/view/Window.html#getCurrentFocus()">getCurrentFocus()</a></code> on the
 Window of this Activity to return the currently focused view.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getFragmentManager()">getFragmentManager</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the FragmentManager for interacting with fragments associated
 with this activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getIntent()">getIntent</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the intent that started this activity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getLastNonConfigurationInstance()">getLastNonConfigurationInstance</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 13.
      Use the new <code><a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a></code> API
 <code><a href="http://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean)">setRetainInstance(boolean)</a></code> instead; this is also
 available on older platforms through the Android compatibility package.
</em></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/LayoutInflater.html">LayoutInflater</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getLayoutInflater()">getLayoutInflater</a></span>()</nobr>
        
        <div class="jd-descrdiv">Convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#getLayoutInflater()">getLayoutInflater()</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/app/LoaderManager.html">LoaderManager</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getLoaderManager()">getLoaderManager</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the LoaderManager for this fragment, creating it if needed.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getLocalClassName()">getLocalClassName</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns class name for this activity with the package prefix removed.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/MenuInflater.html">MenuInflater</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getMenuInflater()">getMenuInflater</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns a <code><a href="http://developer.android.com/reference/android/view/MenuInflater.html">MenuInflater</a></code> with this context.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="./Activity_files/Activity.htm">Activity</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getParent()">getParent</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the parent activity if this view is an embedded child.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getParentActivityIntent()">getParentActivityIntent</a></span>()</nobr>
        
        <div class="jd-descrdiv">Obtain an <code><a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a></code> that will launch an explicit target activity specified by
 this activity's logical parent.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/SharedPreferences.html">SharedPreferences</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getPreferences(int)">getPreferences</a></span>(int mode)</nobr>
        
        <div class="jd-descrdiv">Retrieve a <code><a href="http://developer.android.com/reference/android/content/SharedPreferences.html">SharedPreferences</a></code> object for accessing preferences
 that are private to this activity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getRequestedOrientation()">getRequestedOrientation</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the current requested orientation of the activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getSystemService(java.lang.String)">getSystemService</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Return the handle to a system-level service by name.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getTaskId()">getTaskId</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the identifier of the task this activity is in.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getTitle()">getTitle</a></span>()</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getTitleColor()">getTitleColor</a></span>()</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getVolumeControlStream()">getVolumeControlStream</a></span>()</nobr>
        
        <div class="jd-descrdiv">Gets the suggested audio stream whose volume should be changed by the
 harwdare volume controls.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/Window.html">Window</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getWindow()">getWindow</a></span>()</nobr>
        
        <div class="jd-descrdiv">Retrieve the current <code><a href="http://developer.android.com/reference/android/view/Window.html">Window</a></code> for the activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/WindowManager.html">WindowManager</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#getWindowManager()">getWindowManager</a></span>()</nobr>
        
        <div class="jd-descrdiv">Retrieve the window manager for showing custom windows.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-3">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#hasWindowFocus()">hasWindowFocus</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns true if this activity's <em>main</em> window currently has window focus.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#invalidateOptionsMenu()">invalidateOptionsMenu</a></span>()</nobr>
        
        <div class="jd-descrdiv">Declare that the options menu has changed, so should be recreated.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#isChangingConfigurations()">isChangingConfigurations</a></span>()</nobr>
        
        <div class="jd-descrdiv">Check to see whether this activity is in the process of being destroyed in order to be
 recreated with a new configuration.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#isChild()">isChild</a></span>()</nobr>
        
        <div class="jd-descrdiv">Is this activity embedded inside of another activity? </div>
  
  </td></tr>


	 
    <tr class=" api apilevel-17">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#isDestroyed()">isDestroyed</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns true if the final <code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code> call has been made
 on the Activity, so this instance is now dead.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#isFinishing()">isFinishing</a></span>()</nobr>
        
        <div class="jd-descrdiv">Check to see whether this activity is in the process of finishing,
 either because you called <code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code> on it or someone else
 has requested that it finished.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#isTaskRoot()">isTaskRoot</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return whether this activity is the root of a task.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/android/database/Cursor.html">Cursor</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#managedQuery(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)">managedQuery</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, <a href="http://developer.android.com/reference/java/lang/String.html">String[]</a> projection, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> selection, <a href="http://developer.android.com/reference/java/lang/String.html">String[]</a> selectionArgs, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> sortOrder)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 11.
      Use <code><a href="http://developer.android.com/reference/android/content/CursorLoader.html">CursorLoader</a></code> instead.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#moveTaskToBack(boolean)">moveTaskToBack</a></span>(boolean nonRoot)</nobr>
        
        <div class="jd-descrdiv">Move the task containing this activity to the back of the activity
 stack.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#navigateUpTo(android.content.Intent)">navigateUpTo</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> upIntent)</nobr>
        
        <div class="jd-descrdiv">Navigate from this activity to the activity specified by upIntent, finishing this activity
 in the process.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#navigateUpToFromChild(android.app.Activity, android.content.Intent)">navigateUpToFromChild</a></span>(<a href="./Activity_files/Activity.htm">Activity</a> child, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> upIntent)</nobr>
        
        <div class="jd-descrdiv">This is called when a child activity of this one calls its
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#navigateUpTo(android.content.Intent)">navigateUpTo(Intent)</a></code> method.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onActionModeFinished(android.view.ActionMode)">onActionModeFinished</a></span>(<a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a> mode)</nobr>
        
        <div class="jd-descrdiv">Notifies the activity that an action mode has finished.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onActionModeStarted(android.view.ActionMode)">onActionModeStarted</a></span>(<a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a> mode)</nobr>
        
        <div class="jd-descrdiv">Notifies the Activity that an action mode has been started.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onAttachFragment(android.app.Fragment)">onAttachFragment</a></span>(<a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a> fragment)</nobr>
        
        <div class="jd-descrdiv">Called when a Fragment is being attached to this activity, immediately
 after the call to its <code><a href="http://developer.android.com/reference/android/app/Fragment.html#onAttach(android.app.Activity)">Fragment.onAttach()</a></code>
 method and before <code><a href="http://developer.android.com/reference/android/app/Fragment.html#onCreate(android.os.Bundle)">Fragment.onCreate()</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onAttachedToWindow()">onAttachedToWindow</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called when the main window associated with the activity has been
 attached to the window manager.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onBackPressed()">onBackPressed</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called when the activity has detected the user's press of the back
 key.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)">onConfigurationChanged</a></span>(<a href="http://developer.android.com/reference/android/content/res/Configuration.html">Configuration</a> newConfig)</nobr>
        
        <div class="jd-descrdiv">Called by the system when the device configuration changes while your
 activity is running.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onContentChanged()">onContentChanged</a></span>()</nobr>
        
        <div class="jd-descrdiv">This hook is called whenever the content view of the screen changes
 (due to a call to
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setContentView(android.view.View, android.view.ViewGroup.LayoutParams)">Window.setContentView</a></code> or
 <code><a href="http://developer.android.com/reference/android/view/Window.html#addContentView(android.view.View, android.view.ViewGroup.LayoutParams)">Window.addContentView</a></code>).</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onContextItemSelected(android.view.MenuItem)">onContextItemSelected</a></span>(<a href="http://developer.android.com/reference/android/view/MenuItem.html">MenuItem</a> item)</nobr>
        
        <div class="jd-descrdiv">This hook is called whenever an item in a context menu is selected.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onContextMenuClosed(android.view.Menu)">onContextMenuClosed</a></span>(<a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">This hook is called whenever the context menu is being closed (either by
 the user canceling the menu with the back/menu button, or when an item is
 selected).</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateContextMenu(android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo)">onCreateContextMenu</a></span>(<a href="http://developer.android.com/reference/android/view/ContextMenu.html">ContextMenu</a> menu, <a href="http://developer.android.com/reference/android/view/View.html">View</a> v, <a href="http://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html">ContextMenu.ContextMenuInfo</a> menuInfo)</nobr>
        
        <div class="jd-descrdiv">Called when a context menu for the <code>view</code> is about to be shown.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDescription()">onCreateDescription</a></span>()</nobr>
        
        <div class="jd-descrdiv">Generate a new description for this activity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateNavigateUpTaskStack(android.app.TaskStackBuilder)">onCreateNavigateUpTaskStack</a></span>(<a href="http://developer.android.com/reference/android/app/TaskStackBuilder.html">TaskStackBuilder</a> builder)</nobr>
        
        <div class="jd-descrdiv">Define the synthetic task stack that will be generated during Up navigation from
 a different task.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateOptionsMenu(android.view.Menu)">onCreateOptionsMenu</a></span>(<a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">Initialize the contents of the Activity's standard options menu.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreatePanelMenu(int, android.view.Menu)">onCreatePanelMenu</a></span>(int featureId, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">Default implementation of
 <code><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onCreatePanelMenu(int, android.view.Menu)">onCreatePanelMenu(int, Menu)</a></code>
 for activities.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/View.html">View</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreatePanelView(int)">onCreatePanelView</a></span>(int featureId)</nobr>
        
        <div class="jd-descrdiv">Default implementation of
 <code><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onCreatePanelView(int)">onCreatePanelView(int)</a></code>
 for activities.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateThumbnail(android.graphics.Bitmap, android.graphics.Canvas)">onCreateThumbnail</a></span>(<a href="http://developer.android.com/reference/android/graphics/Bitmap.html">Bitmap</a> outBitmap, <a href="http://developer.android.com/reference/android/graphics/Canvas.html">Canvas</a> canvas)</nobr>
        
        <div class="jd-descrdiv">Generate a new thumbnail for this activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/View.html">View</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet)">onCreateView</a></span>(<a href="http://developer.android.com/reference/android/view/View.html">View</a> parent, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, <a href="http://developer.android.com/reference/android/content/Context.html">Context</a> context, <a href="http://developer.android.com/reference/android/util/AttributeSet.html">AttributeSet</a> attrs)</nobr>
        
        <div class="jd-descrdiv">Standard implementation of
 <code><a href="http://developer.android.com/reference/android/view/LayoutInflater.Factory2.html#onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet)">onCreateView(View, String, Context, AttributeSet)</a></code>
 used when inflating with the LayoutInflater returned by <code><a href="http://developer.android.com/reference/android/app/Activity.html#getSystemService(java.lang.String)">getSystemService(String)</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/View.html">View</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateView(java.lang.String, android.content.Context, android.util.AttributeSet)">onCreateView</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, <a href="http://developer.android.com/reference/android/content/Context.html">Context</a> context, <a href="http://developer.android.com/reference/android/util/AttributeSet.html">AttributeSet</a> attrs)</nobr>
        
        <div class="jd-descrdiv">Standard implementation of
 <code><a href="http://developer.android.com/reference/android/view/LayoutInflater.Factory.html#onCreateView(java.lang.String, android.content.Context, android.util.AttributeSet)">onCreateView(String, Context, AttributeSet)</a></code> used when
 inflating with the LayoutInflater returned by <code><a href="http://developer.android.com/reference/android/app/Activity.html#getSystemService(java.lang.String)">getSystemService(String)</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onDetachedFromWindow()">onDetachedFromWindow</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called when the main window associated with the activity has been
 detached from the window manager.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-12">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onGenericMotionEvent(android.view.MotionEvent)">onGenericMotionEvent</a></span>(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called when a generic motion event was not handled by any of the
 views inside of the activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onKeyDown(int, android.view.KeyEvent)">onKeyDown</a></span>(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called when a key was pressed down and not handled by any of the views
 inside of the activity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onKeyLongPress(int, android.view.KeyEvent)">onKeyLongPress</a></span>(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Default implementation of <code><a href="http://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyLongPress(int, android.view.KeyEvent)">KeyEvent.Callback.onKeyLongPress()</a></code>: always returns false (doesn't handle
 the event).</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onKeyMultiple(int, int, android.view.KeyEvent)">onKeyMultiple</a></span>(int keyCode, int repeatCount, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Default implementation of <code><a href="http://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyMultiple(int, int, android.view.KeyEvent)">KeyEvent.Callback.onKeyMultiple()</a></code>: always returns false (doesn't handle
 the event).</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onKeyShortcut(int, android.view.KeyEvent)">onKeyShortcut</a></span>(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called when a key shortcut event is not handled by any of the views in the Activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onKeyUp(int, android.view.KeyEvent)">onKeyUp</a></span>(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called when a key was released and not handled by any of the views
 inside of the activity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onLowMemory()">onLowMemory</a></span>()</nobr>
        
        <div class="jd-descrdiv">This is called when the overall system is running low on memory, and
 would like actively running process to try to tighten their belt.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onMenuItemSelected(int, android.view.MenuItem)">onMenuItemSelected</a></span>(int featureId, <a href="http://developer.android.com/reference/android/view/MenuItem.html">MenuItem</a> item)</nobr>
        
        <div class="jd-descrdiv">Default implementation of
 <code><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onMenuItemSelected(int, android.view.MenuItem)">onMenuItemSelected(int, MenuItem)</a></code>
 for activities.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onMenuOpened(int, android.view.Menu)">onMenuOpened</a></span>(int featureId, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">Called when a panel's menu is opened by the user.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onNavigateUp()">onNavigateUp</a></span>()</nobr>
        
        <div class="jd-descrdiv">This method is called whenever the user chooses to navigate Up within your application's
 activity hierarchy from the action bar.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onNavigateUpFromChild(android.app.Activity)">onNavigateUpFromChild</a></span>(<a href="./Activity_files/Activity.htm">Activity</a> child)</nobr>
        
        <div class="jd-descrdiv">This is called when a child activity of this one attempts to navigate up.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onOptionsItemSelected(android.view.MenuItem)">onOptionsItemSelected</a></span>(<a href="http://developer.android.com/reference/android/view/MenuItem.html">MenuItem</a> item)</nobr>
        
        <div class="jd-descrdiv">This hook is called whenever an item in your options menu is selected.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onOptionsMenuClosed(android.view.Menu)">onOptionsMenuClosed</a></span>(<a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">This hook is called whenever the options menu is being closed (either by the user canceling
 the menu with the back/menu button, or when an item is selected).</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onPanelClosed(int, android.view.Menu)">onPanelClosed</a></span>(int featureId, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">Default implementation of
 <code><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onPanelClosed(int, android.view.Menu)">onPanelClosed(int, Menu)</a></code> for
 activities.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder)">onPrepareNavigateUpTaskStack</a></span>(<a href="http://developer.android.com/reference/android/app/TaskStackBuilder.html">TaskStackBuilder</a> builder)</nobr>
        
        <div class="jd-descrdiv">Prepare the synthetic task stack that will be generated during Up navigation
 from a different task.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareOptionsMenu(android.view.Menu)">onPrepareOptionsMenu</a></span>(<a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">Prepare the Screen's standard options menu to be displayed.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onPreparePanel(int, android.view.View, android.view.Menu)">onPreparePanel</a></span>(int featureId, <a href="http://developer.android.com/reference/android/view/View.html">View</a> view, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">Default implementation of
 <code><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onPreparePanel(int, android.view.View, android.view.Menu)">onPreparePanel(int, View, Menu)</a></code>
 for activities.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance()">onRetainNonConfigurationInstance</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 13.
      Use the new <code><a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a></code> API
 <code><a href="http://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean)">setRetainInstance(boolean)</a></code> instead; this is also
 available on older platforms through the Android compatibility package.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onSearchRequested()">onSearchRequested</a></span>()</nobr>
        
        <div class="jd-descrdiv">This hook is called when the user signals the desire to start a search.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onTouchEvent(android.view.MotionEvent)">onTouchEvent</a></span>(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called when a touch screen event was not handled by any of the views
 under it.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onTrackballEvent(android.view.MotionEvent)">onTrackballEvent</a></span>(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called when the trackball was moved and not handled by any of the
 views inside of the activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-14">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onTrimMemory(int)">onTrimMemory</a></span>(int level)</nobr>
        
        <div class="jd-descrdiv">Called when the operating system has determined that it is a good
 time for a process to trim unneeded memory from its process.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-3">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onUserInteraction()">onUserInteraction</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called whenever a key, touch, or trackball event is dispatched to the
 activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onWindowAttributesChanged(android.view.WindowManager.LayoutParams)">onWindowAttributesChanged</a></span>(<a href="http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html">WindowManager.LayoutParams</a> params)</nobr>
        
        <div class="jd-descrdiv">This is called whenever the current window attributes change.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onWindowFocusChanged(boolean)">onWindowFocusChanged</a></span>(boolean hasFocus)</nobr>
        
        <div class="jd-descrdiv">Called when the current <code><a href="http://developer.android.com/reference/android/view/Window.html">Window</a></code> of the activity gains or loses
 focus.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onWindowStartingActionMode(android.view.ActionMode.Callback)">onWindowStartingActionMode</a></span>(<a href="http://developer.android.com/reference/android/view/ActionMode.Callback.html">ActionMode.Callback</a> callback)</nobr>
        
        <div class="jd-descrdiv">Give the Activity a chance to control the UI for an action mode requested
 by the system.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#openContextMenu(android.view.View)">openContextMenu</a></span>(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view)</nobr>
        
        <div class="jd-descrdiv">Programmatically opens the context menu for a particular <code>view</code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#openOptionsMenu()">openOptionsMenu</a></span>()</nobr>
        
        <div class="jd-descrdiv">Programmatically opens the options menu.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#overridePendingTransition(int, int)">overridePendingTransition</a></span>(int enterAnim, int exitAnim)</nobr>
        
        <div class="jd-descrdiv">Call immediately after one of the flavors of <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code>
 or <code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code> to specify an explicit transition animation to
 perform next.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#recreate()">recreate</a></span>()</nobr>
        
        <div class="jd-descrdiv">Cause this Activity to be recreated with a new instance.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#registerForContextMenu(android.view.View)">registerForContextMenu</a></span>(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view)</nobr>
        
        <div class="jd-descrdiv">Registers a context menu to be shown for the given view (multiple views
 can show the context menu).</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#removeDialog(int)">removeDialog</a></span>(int id)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 13.
      Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#requestWindowFeature(int)">requestWindowFeature</a></span>(int featureId)</nobr>
        
        <div class="jd-descrdiv">Enable extended window features.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable)">runOnUiThread</a></span>(<a href="http://developer.android.com/reference/java/lang/Runnable.html">Runnable</a> action)</nobr>
        
        <div class="jd-descrdiv">Runs the specified action on the UI thread.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(int)">setContentView</a></span>(int layoutResID)</nobr>
        
        <div class="jd-descrdiv">Set the activity content from a layout resource.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(android.view.View)">setContentView</a></span>(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view)</nobr>
        
        <div class="jd-descrdiv">Set the activity content to an explicit view.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(android.view.View, android.view.ViewGroup.LayoutParams)">setContentView</a></span>(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view, <a href="http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html">ViewGroup.LayoutParams</a> params)</nobr>
        
        <div class="jd-descrdiv">Set the activity content to an explicit view.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode</a></span>(int mode)</nobr>
        
        <div class="jd-descrdiv">Select the default key handling for this activity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setFeatureDrawable(int, android.graphics.drawable.Drawable)">setFeatureDrawable</a></span>(int featureId, <a href="http://developer.android.com/reference/android/graphics/drawable/Drawable.html">Drawable</a> drawable)</nobr>
        
        <div class="jd-descrdiv">Convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setFeatureDrawable(int, android.graphics.drawable.Drawable)">setFeatureDrawable(int, Drawable)</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setFeatureDrawableAlpha(int, int)">setFeatureDrawableAlpha</a></span>(int featureId, int alpha)</nobr>
        
        <div class="jd-descrdiv">Convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setFeatureDrawableAlpha(int, int)">setFeatureDrawableAlpha(int, int)</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setFeatureDrawableResource(int, int)">setFeatureDrawableResource</a></span>(int featureId, int resId)</nobr>
        
        <div class="jd-descrdiv">Convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setFeatureDrawableResource(int, int)">setFeatureDrawableResource(int, int)</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setFeatureDrawableUri(int, android.net.Uri)">setFeatureDrawableUri</a></span>(int featureId, <a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri)</nobr>
        
        <div class="jd-descrdiv">Convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setFeatureDrawableUri(int, android.net.Uri)">setFeatureDrawableUri(int, Uri)</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setFinishOnTouchOutside(boolean)">setFinishOnTouchOutside</a></span>(boolean finish)</nobr>
        
        <div class="jd-descrdiv">Sets whether this activity is finished when touched outside its window's
 bounds.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setIntent(android.content.Intent)">setIntent</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> newIntent)</nobr>
        
        <div class="jd-descrdiv">Change the intent returned by <code><a href="http://developer.android.com/reference/android/app/Activity.html#getIntent()">getIntent()</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setProgress(int)">setProgress</a></span>(int progress)</nobr>
        
        <div class="jd-descrdiv">Sets the progress for the progress bars in the title.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminate(boolean)">setProgressBarIndeterminate</a></span>(boolean indeterminate)</nobr>
        
        <div class="jd-descrdiv">Sets whether the horizontal progress bar in the title should be indeterminate (the circular
 is always indeterminate).</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminateVisibility(boolean)">setProgressBarIndeterminateVisibility</a></span>(boolean visible)</nobr>
        
        <div class="jd-descrdiv">Sets the visibility of the indeterminate progress bar in the title.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setProgressBarVisibility(boolean)">setProgressBarVisibility</a></span>(boolean visible)</nobr>
        
        <div class="jd-descrdiv">Sets the visibility of the progress bar in the title.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setRequestedOrientation(int)">setRequestedOrientation</a></span>(int requestedOrientation)</nobr>
        
        <div class="jd-descrdiv">Change the desired orientation of this activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setResult(int)">setResult</a></span>(int resultCode)</nobr>
        
        <div class="jd-descrdiv">Call this to set the result that your activity will return to its
 caller.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setResult(int, android.content.Intent)">setResult</a></span>(int resultCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> data)</nobr>
        
        <div class="jd-descrdiv">Call this to set the result that your activity will return to its
 caller.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setSecondaryProgress(int)">setSecondaryProgress</a></span>(int secondaryProgress)</nobr>
        
        <div class="jd-descrdiv">Sets the secondary progress for the progress bar in the title.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setTitle(int)">setTitle</a></span>(int titleId)</nobr>
        
        <div class="jd-descrdiv">Change the title associated with this activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setTitle(java.lang.CharSequence)">setTitle</a></span>(<a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a> title)</nobr>
        
        <div class="jd-descrdiv">Change the title associated with this activity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setTitleColor(int)">setTitleColor</a></span>(int textColor)</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-3">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setVisible(boolean)">setVisible</a></span>(boolean visible)</nobr>
        
        <div class="jd-descrdiv">Control whether this activity's main window is visible.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#setVolumeControlStream(int)">setVolumeControlStream</a></span>(int streamType)</nobr>
        
        <div class="jd-descrdiv">Suggests an audio stream whose volume should be changed by the hardware
 volume controls.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#shouldUpRecreateTask(android.content.Intent)">shouldUpRecreateTask</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> targetIntent)</nobr>
        
        <div class="jd-descrdiv">Returns true if the app should recreate the task when navigating 'up' from this activity
 by using targetIntent.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-8">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int, android.os.Bundle)">showDialog</a></span>(int id, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> args)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 13.
      Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.
</em></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int)">showDialog</a></span>(int id)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 13.
      Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActionMode(android.view.ActionMode.Callback)">startActionMode</a></span>(<a href="http://developer.android.com/reference/android/view/ActionMode.Callback.html">ActionMode.Callback</a> callback)</nobr>
        
        <div class="jd-descrdiv">Start an action mode.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivities(android.content.Intent[], android.os.Bundle)">startActivities</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent[]</a> intents, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Launch a new activity.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivities(android.content.Intent[])">startActivities</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent[]</a> intents)</nobr>
        
        <div class="jd-descrdiv">Same as <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivities(android.content.Intent[], android.os.Bundle)">startActivities(Intent[], Bundle)</a></code> with no options
 specified.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">Same as <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent, Bundle)</a></code> with no options
 specified.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Launch a new activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode)</nobr>
        
        <div class="jd-descrdiv">Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int, android.os.Bundle)">startActivityForResult(Intent, int, Bundle)</a></code>
 with no options.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int, android.os.Bundle)">startActivityForResult</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Launch an activity for which you would like a result when it finished.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityFromChild(android.app.Activity, android.content.Intent, int, android.os.Bundle)">startActivityFromChild</a></span>(<a href="./Activity_files/Activity.htm">Activity</a> child, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">This is called when a child activity of this one calls its 
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code> or <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code> method.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityFromChild(android.app.Activity, android.content.Intent, int)">startActivityFromChild</a></span>(<a href="./Activity_files/Activity.htm">Activity</a> child, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode)</nobr>
        
        <div class="jd-descrdiv">Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityFromChild(android.app.Activity, android.content.Intent, int, android.os.Bundle)">startActivityFromChild(Activity, Intent, int, Bundle)</a></code>
 with no options.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityFromFragment(android.app.Fragment, android.content.Intent, int, android.os.Bundle)">startActivityFromFragment</a></span>(<a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a> fragment, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">This is called when a Fragment in this activity calls its 
 <code><a href="http://developer.android.com/reference/android/app/Fragment.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code> or <code><a href="http://developer.android.com/reference/android/app/Fragment.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code>
 method.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityFromFragment(android.app.Fragment, android.content.Intent, int)">startActivityFromFragment</a></span>(<a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a> fragment, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode)</nobr>
        
        <div class="jd-descrdiv">Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityFromFragment(android.app.Fragment, android.content.Intent, int, android.os.Bundle)">startActivityFromFragment(Fragment, Intent, int, Bundle)</a></code>
 with no options.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityIfNeeded(android.content.Intent, int, android.os.Bundle)">startActivityIfNeeded</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">A special variation to launch an activity only if a new activity
 instance is needed to handle the given Intent.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityIfNeeded(android.content.Intent, int)">startActivityIfNeeded</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode)</nobr>
        
        <div class="jd-descrdiv">Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityIfNeeded(android.content.Intent, int, android.os.Bundle)">startActivityIfNeeded(Intent, int, Bundle)</a></code>
 with no options.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSender</a></span>(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Like <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent, Bundle)</a></code>, but taking a IntentSender
 to start; see
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSenderForResult(IntentSender, int, Intent, int, int, int, Bundle)</a></code>
 for more information.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int)">startIntentSender</a></span>(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)</nobr>
        
        <div class="jd-descrdiv">Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSender(IntentSender, Intent, int, int, int, Bundle)</a></code>
 with no options.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSenderForResult</a></span>(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Like <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code>, but allowing you
 to use a IntentSender to describe the activity to be started.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int)">startIntentSenderForResult</a></span>(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)</nobr>
        
        <div class="jd-descrdiv">Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSenderForResult(IntentSender, int, Intent, int, int, int, Bundle)</a></code> with no options.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderFromChild(android.app.Activity, android.content.IntentSender, int, android.content.Intent, int, int, int)">startIntentSenderFromChild</a></span>(<a href="./Activity_files/Activity.htm">Activity</a> child, <a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)</nobr>
        
        <div class="jd-descrdiv">Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderFromChild(android.app.Activity, android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSenderFromChild(Activity, IntentSender, int, Intent, int, int, int, Bundle)</a></code> with no options.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderFromChild(android.app.Activity, android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSenderFromChild</a></span>(<a href="./Activity_files/Activity.htm">Activity</a> child, <a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Like <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityFromChild(android.app.Activity, android.content.Intent, int)">startActivityFromChild(Activity, Intent, int)</a></code>, but
 taking a IntentSender; see
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int)">startIntentSenderForResult(IntentSender, int, Intent, int, int, int)</a></code>
 for more information.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startManagingCursor(android.database.Cursor)">startManagingCursor</a></span>(<a href="http://developer.android.com/reference/android/database/Cursor.html">Cursor</a> c)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 11.
      Use the new <code><a href="http://developer.android.com/reference/android/content/CursorLoader.html">CursorLoader</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/LoaderManager.html">LoaderManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startNextMatchingActivity(android.content.Intent)">startNextMatchingActivity</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startNextMatchingActivity(android.content.Intent, android.os.Bundle)">startNextMatchingActivity(Intent, Bundle)</a></code> with
 no options.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startNextMatchingActivity(android.content.Intent, android.os.Bundle)">startNextMatchingActivity</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Special version of starting an activity, for use when you are replacing
 other activity components.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#startSearch(java.lang.String, boolean, android.os.Bundle, boolean)">startSearch</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> initialQuery, boolean selectInitialQuery, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> appSearchData, boolean globalSearch)</nobr>
        
        <div class="jd-descrdiv">This hook is called to launch the search UI.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#stopManagingCursor(android.database.Cursor)">stopManagingCursor</a></span>(<a href="http://developer.android.com/reference/android/database/Cursor.html">Cursor</a> c)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 11.
      Use the new <code><a href="http://developer.android.com/reference/android/content/CursorLoader.html">CursorLoader</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/LoaderManager.html">LoaderManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#takeKeyEvents(boolean)">takeKeyEvents</a></span>(boolean get)</nobr>
        
        <div class="jd-descrdiv">Request that key events come to this activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#triggerSearch(java.lang.String, android.os.Bundle)">triggerSearch</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> query, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> appSearchData)</nobr>
        
        <div class="jd-descrdiv">Similar to <code><a href="http://developer.android.com/reference/android/app/Activity.html#startSearch(java.lang.String, boolean, android.os.Bundle, boolean)">startSearch(String, boolean, Bundle, boolean)</a></code>, but actually fires off the search query after invoking
 the search dialog.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#unregisterForContextMenu(android.view.View)">unregisterForContextMenu</a></span>(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view)</nobr>
        
        <div class="jd-descrdiv">Prevents a context menu to be shown for the given view.</div>
  
  </td></tr>



</tbody></table>




<!-- ========== METHOD SUMMARY =========== -->
<table id="promethods" class="jd-sumtable"><tbody><tr><th colspan="12">Protected Methods</th></tr>



	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)">onActivityResult</a></span>(int requestCode, int resultCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> data)</nobr>
        
        <div class="jd-descrdiv">Called when an activity you launched exits, giving you the requestCode
 you started it with, the resultCode it returned, and any additional
 data from it.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onApplyThemeResource(android.content.res.Resources.Theme, int, boolean)">onApplyThemeResource</a></span>(<a href="http://developer.android.com/reference/android/content/res/Resources.Theme.html">Resources.Theme</a> theme, int resid, boolean first)</nobr>
        
        <div class="jd-descrdiv">Called by <code><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#setTheme(int)">setTheme(int)</a></code> and <code><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#getTheme()">getTheme()</a></code> to apply a theme
 resource to the current Theme object.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onChildTitleChanged(android.app.Activity, java.lang.CharSequence)">onChildTitleChanged</a></span>(<a href="./Activity_files/Activity.htm">Activity</a> childActivity, <a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a> title)</nobr>
        
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate</a></span>(<a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> savedInstanceState)</nobr>
        
        <div class="jd-descrdiv">Called when the activity is starting.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/app/Dialog.html">Dialog</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int)">onCreateDialog</a></span>(int id)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 8.
      Old no-arguments version of <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int, android.os.Bundle)">onCreateDialog(int, Bundle)</a></code>.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-8">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/app/Dialog.html">Dialog</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int, android.os.Bundle)">onCreateDialog</a></span>(int id, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> args)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 13.
      Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.
</em></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy</a></span>()</nobr>
        
        <div class="jd-descrdiv">Perform any final cleanup before an activity is destroyed.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent)">onNewIntent</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">This is called for activities that set launchMode to "singleTop" in
 their package, or if a client used the <code><a href="http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_SINGLE_TOP">FLAG_ACTIVITY_SINGLE_TOP</a></code>
 flag when calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called as part of the activity lifecycle when an activity is going into
 the background, but has not (yet) been killed.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onPostCreate(android.os.Bundle)">onPostCreate</a></span>(<a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> savedInstanceState)</nobr>
        
        <div class="jd-descrdiv">Called when activity start-up is complete (after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code>
 and <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code> have been called).</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onPostResume()">onPostResume</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called when activity resume is complete (after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code> has
 been called).</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog)">onPrepareDialog</a></span>(int id, <a href="http://developer.android.com/reference/android/app/Dialog.html">Dialog</a> dialog)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 8.
      Old no-arguments version of
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog, android.os.Bundle)">onPrepareDialog(int, Dialog, Bundle)</a></code>.
</em></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-8">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog, android.os.Bundle)">onPrepareDialog</a></span>(int id, <a href="http://developer.android.com/reference/android/app/Dialog.html">Dialog</a> dialog, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> args)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 13.
      Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onRestart()">onRestart</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code> when the current activity is being
 re-displayed to the user (the user has navigated back to it).</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState</a></span>(<a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> savedInstanceState)</nobr>
        
        <div class="jd-descrdiv">This method is called after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code> when the activity is
 being re-initialized from a previously saved state, given here in
 <var>savedInstanceState</var>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code>, <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestart()">onRestart()</a></code>, or
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code>, for your activity to start interacting with the user.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState</a></span>(<a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> outState)</nobr>
        
        <div class="jd-descrdiv">Called to retrieve per-instance state from an activity before being killed
 so that the state can be restored in <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> or
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code> (the <code><a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a></code> populated by this method
 will be passed to both).</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> — or after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestart()">onRestart()</a></code> when  
 the activity had been stopped, but is now again being displayed to the 
 user.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called when you are no longer visible to the user.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onTitleChanged(java.lang.CharSequence, int)">onTitleChanged</a></span>(<a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a> title, int color)</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-3">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()">onUserLeaveHint</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called as part of the activity lifecycle when an activity is about to go
 into the background as the result of user choice.</div>
  
  </td></tr>



</tbody></table>





<!-- ========== METHOD SUMMARY =========== -->
<table id="inhmethods" class="jd-sumtable"><tbody><tr><th>
  <a href="http://developer.android.com/reference/android/app/Activity.html#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
  <div style="clear:left;">Inherited Methods</div></th></tr>


<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.view.ContextThemeWrapper" class="jd-expando-trigger closed"><img id="inherited-methods-android.view.ContextThemeWrapper-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From class

  <a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html">android.view.ContextThemeWrapper</a>

<div id="inherited-methods-android.view.ContextThemeWrapper">
  <div id="inherited-methods-android.view.ContextThemeWrapper-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-android.view.ContextThemeWrapper-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#applyOverrideConfiguration(android.content.res.Configuration)">applyOverrideConfiguration</a></span>(<a href="http://developer.android.com/reference/android/content/res/Configuration.html">Configuration</a> overrideConfiguration)</nobr>
        
        <div class="jd-descrdiv">Call to set an "override configuration" on this context -- this is
 a configuration that replies one or more values of the standard
 configuration that is applied to the context.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#attachBaseContext(android.content.Context)">attachBaseContext</a></span>(<a href="http://developer.android.com/reference/android/content/Context.html">Context</a> newBase)</nobr>
        
        <div class="jd-descrdiv">Set the base context for this ContextWrapper.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/res/Resources.html">Resources</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#getResources()">getResources</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return a Resources instance for your application's package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#getSystemService(java.lang.String)">getSystemService</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Return the handle to a system-level service by name.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/res/Resources.Theme.html">Resources.Theme</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#getTheme()">getTheme</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the Theme object associated with this Context.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#onApplyThemeResource(android.content.res.Resources.Theme, int, boolean)">onApplyThemeResource</a></span>(<a href="http://developer.android.com/reference/android/content/res/Resources.Theme.html">Resources.Theme</a> theme, int resid, boolean first)</nobr>
        
        <div class="jd-descrdiv">Called by <code><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#setTheme(int)">setTheme(int)</a></code> and <code><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#getTheme()">getTheme()</a></code> to apply a theme
 resource to the current Theme object.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#setTheme(int)">setTheme</a></span>(int resid)</nobr>
        
        <div class="jd-descrdiv">Set the base theme for this context.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.content.ContextWrapper" class="jd-expando-trigger closed"><img id="inherited-methods-android.content.ContextWrapper-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From class

  <a href="http://developer.android.com/reference/android/content/ContextWrapper.html">android.content.ContextWrapper</a>

<div id="inherited-methods-android.content.ContextWrapper">
  <div id="inherited-methods-android.content.ContextWrapper-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-android.content.ContextWrapper-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#attachBaseContext(android.content.Context)">attachBaseContext</a></span>(<a href="http://developer.android.com/reference/android/content/Context.html">Context</a> base)</nobr>
        
        <div class="jd-descrdiv">Set the base context for this ContextWrapper.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, android.content.ServiceConnection, int)">bindService</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> service, <a href="http://developer.android.com/reference/android/content/ServiceConnection.html">ServiceConnection</a> conn, int flags)</nobr>
        
        <div class="jd-descrdiv">Connect to an application service, creating it if needed.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfPermission(java.lang.String)">checkCallingOrSelfPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission)</nobr>
        
        <div class="jd-descrdiv">Determine whether the calling process of an IPC <em>or you</em> have been
 granted a particular permission.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfUriPermission(android.net.Uri, int)">checkCallingOrSelfUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Determine whether the calling process of an IPC <em>or you</em> has been granted
 permission to access a specific URI.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingPermission(java.lang.String)">checkCallingPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission)</nobr>
        
        <div class="jd-descrdiv">Determine whether the calling process of an IPC you are handling has been
 granted a particular permission.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingUriPermission(android.net.Uri, int)">checkCallingUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Determine whether the calling process and user ID has been
 granted permission to access a specific URI.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#checkPermission(java.lang.String, int, int)">checkPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission, int pid, int uid)</nobr>
        
        <div class="jd-descrdiv">Determine whether the given permission is allowed for a particular
 process and user ID running in the system.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermission(android.net.Uri, int, int, int)">checkUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int pid, int uid, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Determine whether a particular process and user ID has been granted
 permission to access a specific URI.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermission(android.net.Uri, java.lang.String, java.lang.String, int, int, int)">checkUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> readPermission, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> writePermission, int pid, int uid, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Check both a Uri and normal permission.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#clearWallpaper()">clearWallpaper</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level .
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#clear()">WallpaperManager.clear()</a></code> instead.
 </em><p><em>This method requires the caller to hold the permission
 <code><a href="http://developer.android.com/reference/android/Manifest.permission.html#SET_WALLPAPER">SET_WALLPAPER</a></code>.
</em></p></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Context.html">Context</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#createConfigurationContext(android.content.res.Configuration)">createConfigurationContext</a></span>(<a href="http://developer.android.com/reference/android/content/res/Configuration.html">Configuration</a> overrideConfiguration)</nobr>
        
        <div class="jd-descrdiv">Return a new Context object for the current Context but whose resources
 are adjusted to match the given Configuration.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-17">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Context.html">Context</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#createDisplayContext(android.view.Display)">createDisplayContext</a></span>(<a href="http://developer.android.com/reference/android/view/Display.html">Display</a> display)</nobr>
        
        <div class="jd-descrdiv">Return a new Context object for the current Context but whose resources
 are adjusted to match the metrics of the given Display.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Context.html">Context</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#createPackageContext(java.lang.String, int)">createPackageContext</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> packageName, int flags)</nobr>
        
        <div class="jd-descrdiv">Return a new Context object for the given application name.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String[]</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#databaseList()">databaseList</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns an array of strings naming the private databases associated with
 this Context's application package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#deleteDatabase(java.lang.String)">deleteDatabase</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Delete an existing private SQLiteDatabase associated with this Context's
 application package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#deleteFile(java.lang.String)">deleteFile</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Delete the given private file associated with this Context's
 application package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingOrSelfPermission(java.lang.String, java.lang.String)">enforceCallingOrSelfPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If neither you nor the calling process of an IPC you are
 handling has been granted a particular permission, throw a
 <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingOrSelfUriPermission(android.net.Uri, int, java.lang.String)">enforceCallingOrSelfUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If the calling process of an IPC <em>or you</em> has not been
 granted permission to access a specific URI, throw <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingPermission(java.lang.String, java.lang.String)">enforceCallingPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If the calling process of an IPC you are handling has not been
 granted a particular permission, throw a <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingUriPermission(android.net.Uri, int, java.lang.String)">enforceCallingUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If the calling process and user ID has not been granted
 permission to access a specific URI, throw <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#enforcePermission(java.lang.String, int, int, java.lang.String)">enforcePermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission, int pid, int uid, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If the given permission is not allowed for a particular process
 and user ID running in the system, throw a <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#enforceUriPermission(android.net.Uri, int, int, int, java.lang.String)">enforceUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int pid, int uid, int modeFlags, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If a particular process and user ID has not been granted
 permission to access a specific URI, throw <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#enforceUriPermission(android.net.Uri, java.lang.String, java.lang.String, int, int, int, java.lang.String)">enforceUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> readPermission, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> writePermission, int pid, int uid, int modeFlags, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">Enforce both a Uri and normal permission.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String[]</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#fileList()">fileList</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns an array of strings naming the private files associated with
 this Context's application package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Context.html">Context</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getApplicationContext()">getApplicationContext</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the context of the single, global Application object of the
 current process.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-4">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/pm/ApplicationInfo.html">ApplicationInfo</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getApplicationInfo()">getApplicationInfo</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the full application info for this context's package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/res/AssetManager.html">AssetManager</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getAssets()">getAssets</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return an AssetManager instance for your application's package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Context.html">Context</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getBaseContext()">getBaseContext</a></span>()</nobr>
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getCacheDir()">getCacheDir</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path to the application specific cache directory
 on the filesystem.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/ClassLoader.html">ClassLoader</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getClassLoader()">getClassLoader</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return a class loader you can use to retrieve classes in this package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/ContentResolver.html">ContentResolver</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getContentResolver()">getContentResolver</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return a ContentResolver instance for your application's package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getDatabasePath(java.lang.String)">getDatabasePath</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path on the filesystem where a database created with
 <code><a href="http://developer.android.com/reference/android/content/Context.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory)">openOrCreateDatabase(String, int, SQLiteDatabase.CursorFactory)</a></code> is stored.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getDir(java.lang.String, int)">getDir</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, int mode)</nobr>
        
        <div class="jd-descrdiv">Retrieve, creating if needed, a new directory in which the application
 can place its own custom data files.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-8">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getExternalCacheDir()">getExternalCacheDir</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path to the directory on the external filesystem
 (that is somewhere on <code><a href="http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()">Environment.getExternalStorageDirectory()</a></code> where the application can
 place cache files it owns.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-8">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getExternalFilesDir(java.lang.String)">getExternalFilesDir</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> type)</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path to the directory on the external filesystem
 (that is somewhere on <code><a href="http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()">Environment.getExternalStorageDirectory()</a></code>) where the application can
 place persistent files it owns.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getFileStreamPath(java.lang.String)">getFileStreamPath</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path on the filesystem where a file created with
 <code><a href="http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String, int)">openFileOutput(String, int)</a></code> is stored.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getFilesDir()">getFilesDir</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path to the directory on the filesystem where
 files created with <code><a href="http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String, int)">openFileOutput(String, int)</a></code> are stored.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/os/Looper.html">Looper</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getMainLooper()">getMainLooper</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the Looper for the main thread of the current process.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getObbDir()">getObbDir</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the directory where this application's OBB files (if there
 are any) can be found.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getPackageCodePath()">getPackageCodePath</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the full path to this context's primary Android package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/pm/PackageManager.html">PackageManager</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getPackageManager()">getPackageManager</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return PackageManager instance to find global package information.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getPackageName()">getPackageName</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the name of this application's package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getPackageResourcePath()">getPackageResourcePath</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the full path to this context's primary Android package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/res/Resources.html">Resources</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getResources()">getResources</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return a Resources instance for your application's package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/SharedPreferences.html">SharedPreferences</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getSharedPreferences(java.lang.String, int)">getSharedPreferences</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, int mode)</nobr>
        
        <div class="jd-descrdiv">Retrieve and hold the contents of the preferences file 'name', returning
 a SharedPreferences through which you can retrieve and modify its
 values.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getSystemService(java.lang.String)">getSystemService</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Return the handle to a system-level service by name.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/res/Resources.Theme.html">Resources.Theme</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getTheme()">getTheme</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the Theme object associated with this Context.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/graphics/drawable/Drawable.html">Drawable</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaper()">getWallpaper</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level .
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#getDrawable()">WallpaperManager.get()</a></code> instead.
</em></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaperDesiredMinimumHeight()">getWallpaperDesiredMinimumHeight</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level .
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#getDesiredMinimumHeight()">WallpaperManager.getDesiredMinimumHeight()</a></code> instead.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getWallpaperDesiredMinimumWidth()">getWallpaperDesiredMinimumWidth</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level .
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#getDesiredMinimumWidth()">WallpaperManager.getDesiredMinimumWidth()</a></code> instead.
</em></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#grantUriPermission(java.lang.String, android.net.Uri, int)">grantUriPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> toPackage, <a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Grant permission to access a specific Uri to another package, regardless
 of whether that package has general permission to access the Uri's
 content provider.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-4">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#isRestricted()">isRestricted</a></span>()</nobr>
        
        <div class="jd-descrdiv">Indicates whether this Context is restricted.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/FileInputStream.html">FileInputStream</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#openFileInput(java.lang.String)">openFileInput</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Open a private file associated with this Context's application package
 for reading.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/FileOutputStream.html">FileOutputStream</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#openFileOutput(java.lang.String, int)">openFileOutput</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, int mode)</nobr>
        
        <div class="jd-descrdiv">Open a private file associated with this Context's application package
 for writing.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html">SQLiteDatabase</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory)">openOrCreateDatabase</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, int mode, <a href="http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html">SQLiteDatabase.CursorFactory</a> factory)</nobr>
        
        <div class="jd-descrdiv">Open a new private SQLiteDatabase associated with this Context's
 application package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html">SQLiteDatabase</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory, android.database.DatabaseErrorHandler)">openOrCreateDatabase</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, int mode, <a href="http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html">SQLiteDatabase.CursorFactory</a> factory, <a href="http://developer.android.com/reference/android/database/DatabaseErrorHandler.html">DatabaseErrorHandler</a> errorHandler)</nobr>
        
        <div class="jd-descrdiv">Open a new private SQLiteDatabase associated with this Context's
 application package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/graphics/drawable/Drawable.html">Drawable</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#peekWallpaper()">peekWallpaper</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level .
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#peekDrawable()">WallpaperManager.peek()</a></code> instead.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter)">registerReceiver</a></span>(<a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> receiver, <a href="http://developer.android.com/reference/android/content/IntentFilter.html">IntentFilter</a> filter)</nobr>
        
        <div class="jd-descrdiv">Register a BroadcastReceiver to be run in the main activity thread.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, java.lang.String, android.os.Handler)">registerReceiver</a></span>(<a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> receiver, <a href="http://developer.android.com/reference/android/content/IntentFilter.html">IntentFilter</a> filter, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> broadcastPermission, <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a> scheduler)</nobr>
        
        <div class="jd-descrdiv">Register to receive intent broadcasts, to run in the context of
 <var>scheduler</var>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#removeStickyBroadcast(android.content.Intent)">removeStickyBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">Remove the data previously sent with <code><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast(Intent)</a></code>,
 so that it is as if the sticky broadcast had never happened.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)">removeStickyBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#removeStickyBroadcast(android.content.Intent)">removeStickyBroadcast(Intent)</a></code> that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#revokeUriPermission(android.net.Uri, int)">revokeUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Remove all permissions to access a particular content provider Uri
 that were previously added with <code><a href="http://developer.android.com/reference/android/content/Context.html#grantUriPermission(java.lang.String, android.net.Uri, int)">grantUriPermission(String, Uri, int)</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcast(android.content.Intent)">sendBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">Broadcast the given intent to all interested BroadcastReceivers.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcast(android.content.Intent, java.lang.String)">sendBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> receiverPermission)</nobr>
        
        <div class="jd-descrdiv">Broadcast the given intent to all interested BroadcastReceivers, allowing
 an optional required permission to be enforced.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle)">sendBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcast(android.content.Intent)">sendBroadcast(Intent)</a></code> that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-17">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String)">sendBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> receiverPermission)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcast(android.content.Intent, java.lang.String)">sendBroadcast(Intent, String)</a></code> that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendOrderedBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> receiverPermission, <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> initialData, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcast(android.content.Intent)">sendBroadcast(Intent)</a></code> that allows you to
 receive data back from the broadcast.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, java.lang.String)">sendOrderedBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> receiverPermission)</nobr>
        
        <div class="jd-descrdiv">Broadcast the given intent to all interested BroadcastReceivers, delivering
 them one at a time to allow more preferred receivers to consume the
 broadcast before it is delivered to less preferred receivers.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendOrderedBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> receiverPermission, <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> initialData, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
        
        <div class="jd-descrdiv">Version of
 <code><a href="http://developer.android.com/reference/android/content/Context.html#sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)</a></code>
 that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">Perform a <code><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcast(android.content.Intent)">sendBroadcast(Intent)</a></code> that is "sticky," meaning the
 Intent you are sending stays around after the broadcast is complete,
 so that others can quickly retrieve that data through the return
 value of <code><a href="http://developer.android.com/reference/android/content/Context.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter)">registerReceiver(BroadcastReceiver, IntentFilter)</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)">sendStickyBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast(Intent)</a></code> that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendStickyOrderedBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> initialData, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast(Intent)</a></code> that allows you to
 receive data back from the broadcast.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendStickyOrderedBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user, <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> initialData, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
        
        <div class="jd-descrdiv">Version of
 <code><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, int, String, Bundle)</a></code>
 that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#setTheme(int)">setTheme</a></span>(int resid)</nobr>
        
        <div class="jd-descrdiv">Set the base theme for this context.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#setWallpaper(android.graphics.Bitmap)">setWallpaper</a></span>(<a href="http://developer.android.com/reference/android/graphics/Bitmap.html">Bitmap</a> bitmap)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level .
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#setBitmap(android.graphics.Bitmap)">WallpaperManager.set()</a></code> instead.
 </em><p><em>This method requires the caller to hold the permission
 <code><a href="http://developer.android.com/reference/android/Manifest.permission.html#SET_WALLPAPER">SET_WALLPAPER</a></code>.
</em></p></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#setWallpaper(java.io.InputStream)">setWallpaper</a></span>(<a href="http://developer.android.com/reference/java/io/InputStream.html">InputStream</a> data)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level .
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#setStream(java.io.InputStream)">WallpaperManager.set()</a></code> instead.
 </em><p><em>This method requires the caller to hold the permission
 <code><a href="http://developer.android.com/reference/android/Manifest.permission.html#SET_WALLPAPER">SET_WALLPAPER</a></code>.
</em></p></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#startActivities(android.content.Intent[])">startActivities</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent[]</a> intents)</nobr>
        
        <div class="jd-descrdiv">Same as <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivities(android.content.Intent[], android.os.Bundle)">startActivities(Intent[], Bundle)</a></code> with no options
 specified.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#startActivities(android.content.Intent[], android.os.Bundle)">startActivities</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent[]</a> intents, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Launch multiple new activities.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#startActivity(android.content.Intent)">startActivity</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">Same as <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent, Bundle)</a></code> with no options
 specified.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Launch a new activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#startInstrumentation(android.content.ComponentName, java.lang.String, android.os.Bundle)">startInstrumentation</a></span>(<a href="http://developer.android.com/reference/android/content/ComponentName.html">ComponentName</a> className, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> profileFile, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> arguments)</nobr>
        
        <div class="jd-descrdiv">Start executing an <code><a href="http://developer.android.com/reference/android/app/Instrumentation.html">Instrumentation</a></code> class.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSender</a></span>(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Like <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent, Bundle)</a></code>, but taking a IntentSender
 to start.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-5">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int)">startIntentSender</a></span>(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)</nobr>
        
        <div class="jd-descrdiv">Same as <code><a href="http://developer.android.com/reference/android/content/Context.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSender(IntentSender, Intent, int, int, int, Bundle)</a></code>
 with no options specified.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/ComponentName.html">ComponentName</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#startService(android.content.Intent)">startService</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> service)</nobr>
        
        <div class="jd-descrdiv">Request that a given application service be started.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#stopService(android.content.Intent)">stopService</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> name)</nobr>
        
        <div class="jd-descrdiv">Request that a given application service be stopped.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#unbindService(android.content.ServiceConnection)">unbindService</a></span>(<a href="http://developer.android.com/reference/android/content/ServiceConnection.html">ServiceConnection</a> conn)</nobr>
        
        <div class="jd-descrdiv">Disconnect from an application service.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#unregisterReceiver(android.content.BroadcastReceiver)">unregisterReceiver</a></span>(<a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> receiver)</nobr>
        
        <div class="jd-descrdiv">Unregister a previously registered BroadcastReceiver.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.content.Context" class="jd-expando-trigger closed"><img id="inherited-methods-android.content.Context-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From class

  <a href="http://developer.android.com/reference/android/content/Context.html">android.content.Context</a>

<div id="inherited-methods-android.content.Context">
  <div id="inherited-methods-android.content.Context-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-android.content.Context-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#bindService(android.content.Intent, android.content.ServiceConnection, int)">bindService</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> service, <a href="http://developer.android.com/reference/android/content/ServiceConnection.html">ServiceConnection</a> conn, int flags)</nobr>
        
        <div class="jd-descrdiv">Connect to an application service, creating it if needed.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#checkCallingOrSelfPermission(java.lang.String)">checkCallingOrSelfPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission)</nobr>
        
        <div class="jd-descrdiv">Determine whether the calling process of an IPC <em>or you</em> have been
 granted a particular permission.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#checkCallingOrSelfUriPermission(android.net.Uri, int)">checkCallingOrSelfUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Determine whether the calling process of an IPC <em>or you</em> has been granted
 permission to access a specific URI.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#checkCallingPermission(java.lang.String)">checkCallingPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission)</nobr>
        
        <div class="jd-descrdiv">Determine whether the calling process of an IPC you are handling has been
 granted a particular permission.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#checkCallingUriPermission(android.net.Uri, int)">checkCallingUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Determine whether the calling process and user ID has been
 granted permission to access a specific URI.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#checkPermission(java.lang.String, int, int)">checkPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission, int pid, int uid)</nobr>
        
        <div class="jd-descrdiv">Determine whether the given permission is allowed for a particular
 process and user ID running in the system.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#checkUriPermission(android.net.Uri, int, int, int)">checkUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int pid, int uid, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Determine whether a particular process and user ID has been granted
 permission to access a specific URI.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#checkUriPermission(android.net.Uri, java.lang.String, java.lang.String, int, int, int)">checkUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> readPermission, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> writePermission, int pid, int uid, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Check both a Uri and normal permission.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#clearWallpaper()">clearWallpaper</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 5.
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#clear()">WallpaperManager.clear()</a></code> instead.
 </em><p><em>This method requires the caller to hold the permission
 <code><a href="http://developer.android.com/reference/android/Manifest.permission.html#SET_WALLPAPER">SET_WALLPAPER</a></code>.
</em></p></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-17">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Context.html">Context</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#createConfigurationContext(android.content.res.Configuration)">createConfigurationContext</a></span>(<a href="http://developer.android.com/reference/android/content/res/Configuration.html">Configuration</a> overrideConfiguration)</nobr>
        
        <div class="jd-descrdiv">Return a new Context object for the current Context but whose resources
 are adjusted to match the given Configuration.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Context.html">Context</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#createDisplayContext(android.view.Display)">createDisplayContext</a></span>(<a href="http://developer.android.com/reference/android/view/Display.html">Display</a> display)</nobr>
        
        <div class="jd-descrdiv">Return a new Context object for the current Context but whose resources
 are adjusted to match the metrics of the given Display.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Context.html">Context</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#createPackageContext(java.lang.String, int)">createPackageContext</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> packageName, int flags)</nobr>
        
        <div class="jd-descrdiv">Return a new Context object for the given application name.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String[]</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#databaseList()">databaseList</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns an array of strings naming the private databases associated with
 this Context's application package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#deleteDatabase(java.lang.String)">deleteDatabase</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Delete an existing private SQLiteDatabase associated with this Context's
 application package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#deleteFile(java.lang.String)">deleteFile</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Delete the given private file associated with this Context's
 application package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#enforceCallingOrSelfPermission(java.lang.String, java.lang.String)">enforceCallingOrSelfPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If neither you nor the calling process of an IPC you are
 handling has been granted a particular permission, throw a
 <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#enforceCallingOrSelfUriPermission(android.net.Uri, int, java.lang.String)">enforceCallingOrSelfUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If the calling process of an IPC <em>or you</em> has not been
 granted permission to access a specific URI, throw <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#enforceCallingPermission(java.lang.String, java.lang.String)">enforceCallingPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If the calling process of an IPC you are handling has not been
 granted a particular permission, throw a <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#enforceCallingUriPermission(android.net.Uri, int, java.lang.String)">enforceCallingUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If the calling process and user ID has not been granted
 permission to access a specific URI, throw <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#enforcePermission(java.lang.String, int, int, java.lang.String)">enforcePermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> permission, int pid, int uid, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If the given permission is not allowed for a particular process
 and user ID running in the system, throw a <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#enforceUriPermission(android.net.Uri, int, int, int, java.lang.String)">enforceUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int pid, int uid, int modeFlags, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">If a particular process and user ID has not been granted
 permission to access a specific URI, throw <code><a href="http://developer.android.com/reference/java/lang/SecurityException.html">SecurityException</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#enforceUriPermission(android.net.Uri, java.lang.String, java.lang.String, int, int, int, java.lang.String)">enforceUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> readPermission, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> writePermission, int pid, int uid, int modeFlags, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> message)</nobr>
        
        <div class="jd-descrdiv">Enforce both a Uri and normal permission.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String[]</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#fileList()">fileList</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns an array of strings naming the private files associated with
 this Context's application package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Context.html">Context</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getApplicationContext()">getApplicationContext</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the context of the single, global Application object of the
 current process.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-4">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/pm/ApplicationInfo.html">ApplicationInfo</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getApplicationInfo()">getApplicationInfo</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the full application info for this context's package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/res/AssetManager.html">AssetManager</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getAssets()">getAssets</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return an AssetManager instance for your application's package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getCacheDir()">getCacheDir</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path to the application specific cache directory
 on the filesystem.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/ClassLoader.html">ClassLoader</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getClassLoader()">getClassLoader</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return a class loader you can use to retrieve classes in this package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/ContentResolver.html">ContentResolver</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getContentResolver()">getContentResolver</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return a ContentResolver instance for your application's package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getDatabasePath(java.lang.String)">getDatabasePath</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path on the filesystem where a database created with
 <code><a href="http://developer.android.com/reference/android/content/Context.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory)">openOrCreateDatabase(String, int, SQLiteDatabase.CursorFactory)</a></code> is stored.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getDir(java.lang.String, int)">getDir</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, int mode)</nobr>
        
        <div class="jd-descrdiv">Retrieve, creating if needed, a new directory in which the application
 can place its own custom data files.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-8">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getExternalCacheDir()">getExternalCacheDir</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path to the directory on the external filesystem
 (that is somewhere on <code><a href="http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()">Environment.getExternalStorageDirectory()</a></code> where the application can
 place cache files it owns.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-8">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String)">getExternalFilesDir</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> type)</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path to the directory on the external filesystem
 (that is somewhere on <code><a href="http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()">Environment.getExternalStorageDirectory()</a></code>) where the application can
 place persistent files it owns.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getFileStreamPath(java.lang.String)">getFileStreamPath</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path on the filesystem where a file created with
 <code><a href="http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String, int)">openFileOutput(String, int)</a></code> is stored.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getFilesDir()">getFilesDir</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns the absolute path to the directory on the filesystem where
 files created with <code><a href="http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String, int)">openFileOutput(String, int)</a></code> are stored.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/os/Looper.html">Looper</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getMainLooper()">getMainLooper</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the Looper for the main thread of the current process.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/File.html">File</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getObbDir()">getObbDir</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the directory where this application's OBB files (if there
 are any) can be found.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-8">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getPackageCodePath()">getPackageCodePath</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the full path to this context's primary Android package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/pm/PackageManager.html">PackageManager</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getPackageManager()">getPackageManager</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return PackageManager instance to find global package information.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getPackageName()">getPackageName</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the name of this application's package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-8">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getPackageResourcePath()">getPackageResourcePath</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the full path to this context's primary Android package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/res/Resources.html">Resources</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getResources()">getResources</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return a Resources instance for your application's package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/SharedPreferences.html">SharedPreferences</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getSharedPreferences(java.lang.String, int)">getSharedPreferences</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, int mode)</nobr>
        
        <div class="jd-descrdiv">Retrieve and hold the contents of the preferences file 'name', returning
 a SharedPreferences through which you can retrieve and modify its
 values.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getString(int)">getString</a></span>(int resId)</nobr>
        
        <div class="jd-descrdiv">Return a localized string from the application's package's
 default string table.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getString(int, java.lang.Object...)">getString</a></span>(int resId, <a href="http://developer.android.com/reference/java/lang/Object.html">Object...</a> formatArgs)</nobr>
        
        <div class="jd-descrdiv">Return a localized formatted string from the application's package's
 default string table, substituting the format arguments as defined in
 <code><a href="http://developer.android.com/reference/java/util/Formatter.html">Formatter</a></code> and <code><a href="http://developer.android.com/reference/java/lang/String.html#format(java.lang.String, java.lang.Object...)">format(String, Object...)</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)">getSystemService</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Return the handle to a system-level service by name.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getText(int)">getText</a></span>(int resId)</nobr>
        
        <div class="jd-descrdiv">Return a localized, styled CharSequence from the application's package's
 default string table.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/res/Resources.Theme.html">Resources.Theme</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getTheme()">getTheme</a></span>()</nobr>
        
        <div class="jd-descrdiv">Return the Theme object associated with this Context.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/graphics/drawable/Drawable.html">Drawable</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getWallpaper()">getWallpaper</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 5.
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#getDrawable()">WallpaperManager.get()</a></code> instead.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getWallpaperDesiredMinimumHeight()">getWallpaperDesiredMinimumHeight</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 5.
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#getDesiredMinimumHeight()">WallpaperManager.getDesiredMinimumHeight()</a></code> instead.
</em></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#getWallpaperDesiredMinimumWidth()">getWallpaperDesiredMinimumWidth</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 5.
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#getDesiredMinimumWidth()">WallpaperManager.getDesiredMinimumWidth()</a></code> instead.
</em></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#grantUriPermission(java.lang.String, android.net.Uri, int)">grantUriPermission</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> toPackage, <a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Grant permission to access a specific Uri to another package, regardless
 of whether that package has general permission to access the Uri's
 content provider.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-4">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#isRestricted()">isRestricted</a></span>()</nobr>
        
        <div class="jd-descrdiv">Indicates whether this Context is restricted.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/android/content/res/TypedArray.html">TypedArray</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(int[])">obtainStyledAttributes</a></span>(int[] attrs)</nobr>
        
        <div class="jd-descrdiv">Retrieve styled attribute information in this Context's theme.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/android/content/res/TypedArray.html">TypedArray</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(android.util.AttributeSet, int[])">obtainStyledAttributes</a></span>(<a href="http://developer.android.com/reference/android/util/AttributeSet.html">AttributeSet</a> set, int[] attrs)</nobr>
        
        <div class="jd-descrdiv">Retrieve styled attribute information in this Context's theme.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/android/content/res/TypedArray.html">TypedArray</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(int, int[])">obtainStyledAttributes</a></span>(int resid, int[] attrs)</nobr>
        
        <div class="jd-descrdiv">Retrieve styled attribute information in this Context's theme.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/android/content/res/TypedArray.html">TypedArray</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(android.util.AttributeSet, int[], int, int)">obtainStyledAttributes</a></span>(<a href="http://developer.android.com/reference/android/util/AttributeSet.html">AttributeSet</a> set, int[] attrs, int defStyleAttr, int defStyleRes)</nobr>
        
        <div class="jd-descrdiv">Retrieve styled attribute information in this Context's theme.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/FileInputStream.html">FileInputStream</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#openFileInput(java.lang.String)">openFileInput</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</nobr>
        
        <div class="jd-descrdiv">Open a private file associated with this Context's application package
 for reading.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/java/io/FileOutputStream.html">FileOutputStream</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String, int)">openFileOutput</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, int mode)</nobr>
        
        <div class="jd-descrdiv">Open a private file associated with this Context's application package
 for writing.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html">SQLiteDatabase</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory)">openOrCreateDatabase</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, int mode, <a href="http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html">SQLiteDatabase.CursorFactory</a> factory)</nobr>
        
        <div class="jd-descrdiv">Open a new private SQLiteDatabase associated with this Context's
 application package.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html">SQLiteDatabase</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory, android.database.DatabaseErrorHandler)">openOrCreateDatabase</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, int mode, <a href="http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html">SQLiteDatabase.CursorFactory</a> factory, <a href="http://developer.android.com/reference/android/database/DatabaseErrorHandler.html">DatabaseErrorHandler</a> errorHandler)</nobr>
        
        <div class="jd-descrdiv">Open a new private SQLiteDatabase associated with this Context's
 application package.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/graphics/drawable/Drawable.html">Drawable</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#peekWallpaper()">peekWallpaper</a></span>()</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 5.
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#peekDrawable()">WallpaperManager.peek()</a></code> instead.
</em></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-14">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#registerComponentCallbacks(android.content.ComponentCallbacks)">registerComponentCallbacks</a></span>(<a href="http://developer.android.com/reference/android/content/ComponentCallbacks.html">ComponentCallbacks</a> callback)</nobr>
        
        <div class="jd-descrdiv">Add a new <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks.html">ComponentCallbacks</a></code> to the base application of the
 Context, which will be called at the same times as the ComponentCallbacks
 methods of activities and other components are called.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter)">registerReceiver</a></span>(<a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> receiver, <a href="http://developer.android.com/reference/android/content/IntentFilter.html">IntentFilter</a> filter)</nobr>
        
        <div class="jd-descrdiv">Register a BroadcastReceiver to be run in the main activity thread.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, java.lang.String, android.os.Handler)">registerReceiver</a></span>(<a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> receiver, <a href="http://developer.android.com/reference/android/content/IntentFilter.html">IntentFilter</a> filter, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> broadcastPermission, <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a> scheduler)</nobr>
        
        <div class="jd-descrdiv">Register to receive intent broadcasts, to run in the context of
 <var>scheduler</var>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#removeStickyBroadcast(android.content.Intent)">removeStickyBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">Remove the data previously sent with <code><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast(Intent)</a></code>,
 so that it is as if the sticky broadcast had never happened.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)">removeStickyBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#removeStickyBroadcast(android.content.Intent)">removeStickyBroadcast(Intent)</a></code> that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#revokeUriPermission(android.net.Uri, int)">revokeUriPermission</a></span>(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, int modeFlags)</nobr>
        
        <div class="jd-descrdiv">Remove all permissions to access a particular content provider Uri
 that were previously added with <code><a href="http://developer.android.com/reference/android/content/Context.html#grantUriPermission(java.lang.String, android.net.Uri, int)">grantUriPermission(String, Uri, int)</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcast(android.content.Intent)">sendBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">Broadcast the given intent to all interested BroadcastReceivers.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcast(android.content.Intent, java.lang.String)">sendBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> receiverPermission)</nobr>
        
        <div class="jd-descrdiv">Broadcast the given intent to all interested BroadcastReceivers, allowing
 an optional required permission to be enforced.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle)">sendBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcast(android.content.Intent)">sendBroadcast(Intent)</a></code> that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-17">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String)">sendBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> receiverPermission)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcast(android.content.Intent, java.lang.String)">sendBroadcast(Intent, String)</a></code> that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendOrderedBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> receiverPermission, <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> initialData, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcast(android.content.Intent)">sendBroadcast(Intent)</a></code> that allows you to
 receive data back from the broadcast.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendOrderedBroadcast(android.content.Intent, java.lang.String)">sendOrderedBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> receiverPermission)</nobr>
        
        <div class="jd-descrdiv">Broadcast the given intent to all interested BroadcastReceivers, delivering
 them one at a time to allow more preferred receivers to consume the
 broadcast before it is delivered to less preferred receivers.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendOrderedBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> receiverPermission, <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> initialData, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
        
        <div class="jd-descrdiv">Version of
 <code><a href="http://developer.android.com/reference/android/content/Context.html#sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)</a></code>
 that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">Perform a <code><a href="http://developer.android.com/reference/android/content/Context.html#sendBroadcast(android.content.Intent)">sendBroadcast(Intent)</a></code> that is "sticky," meaning the
 Intent you are sending stays around after the broadcast is complete,
 so that others can quickly retrieve that data through the return
 value of <code><a href="http://developer.android.com/reference/android/content/Context.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter)">registerReceiver(BroadcastReceiver, IntentFilter)</a></code>.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)">sendStickyBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast(Intent)</a></code> that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-5">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendStickyOrderedBroadcast</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> initialData, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast(Intent)</a></code> that allows you to
 receive data back from the broadcast.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-17">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendStickyOrderedBroadcastAsUser</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/UserHandle.html">UserHandle</a> user, <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="http://developer.android.com/reference/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> initialData, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
        
        <div class="jd-descrdiv">Version of
 <code><a href="http://developer.android.com/reference/android/content/Context.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, int, String, Bundle)</a></code>
 that allows you to specify the
 user the broadcast will be sent to.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#setTheme(int)">setTheme</a></span>(int resid)</nobr>
        
        <div class="jd-descrdiv">Set the base theme for this context.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#setWallpaper(android.graphics.Bitmap)">setWallpaper</a></span>(<a href="http://developer.android.com/reference/android/graphics/Bitmap.html">Bitmap</a> bitmap)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 5.
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#setBitmap(android.graphics.Bitmap)">WallpaperManager.set()</a></code> instead.
 </em><p><em>This method requires the caller to hold the permission
 <code><a href="http://developer.android.com/reference/android/Manifest.permission.html#SET_WALLPAPER">SET_WALLPAPER</a></code>.
</em></p></div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#setWallpaper(java.io.InputStream)">setWallpaper</a></span>(<a href="http://developer.android.com/reference/java/io/InputStream.html">InputStream</a> data)</nobr>
        
        <div class="jd-descrdiv">
      <em>This method was deprecated
      in API level 5.
      Use <code><a href="http://developer.android.com/reference/android/app/WallpaperManager.html#setStream(java.io.InputStream)">WallpaperManager.set()</a></code> instead.
 </em><p><em>This method requires the caller to hold the permission
 <code><a href="http://developer.android.com/reference/android/Manifest.permission.html#SET_WALLPAPER">SET_WALLPAPER</a></code>.
</em></p></div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#startActivities(android.content.Intent[])">startActivities</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent[]</a> intents)</nobr>
        
        <div class="jd-descrdiv">Same as <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivities(android.content.Intent[], android.os.Bundle)">startActivities(Intent[], Bundle)</a></code> with no options
 specified.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#startActivities(android.content.Intent[], android.os.Bundle)">startActivities</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent[]</a> intents, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Launch multiple new activities.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent)">startActivity</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</nobr>
        
        <div class="jd-descrdiv">Same as <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent, Bundle)</a></code> with no options
 specified.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Launch a new activity.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#startInstrumentation(android.content.ComponentName, java.lang.String, android.os.Bundle)">startInstrumentation</a></span>(<a href="http://developer.android.com/reference/android/content/ComponentName.html">ComponentName</a> className, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> profileFile, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> arguments)</nobr>
        
        <div class="jd-descrdiv">Start executing an <code><a href="http://developer.android.com/reference/android/app/Instrumentation.html">Instrumentation</a></code> class.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-16">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSender</a></span>(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</nobr>
        
        <div class="jd-descrdiv">Like <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent, Bundle)</a></code>, but taking a IntentSender
 to start.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-5">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int)">startIntentSender</a></span>(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)</nobr>
        
        <div class="jd-descrdiv">Same as <code><a href="http://developer.android.com/reference/android/content/Context.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSender(IntentSender, Intent, int, int, int, Bundle)</a></code>
 with no options specified.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/content/ComponentName.html">ComponentName</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent)">startService</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> service)</nobr>
        
        <div class="jd-descrdiv">Request that a given application service be started.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#stopService(android.content.Intent)">stopService</a></span>(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> service)</nobr>
        
        <div class="jd-descrdiv">Request that a given application service be stopped.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#unbindService(android.content.ServiceConnection)">unbindService</a></span>(<a href="http://developer.android.com/reference/android/content/ServiceConnection.html">ServiceConnection</a> conn)</nobr>
        
        <div class="jd-descrdiv">Disconnect from an application service.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-14">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#unregisterComponentCallbacks(android.content.ComponentCallbacks)">unregisterComponentCallbacks</a></span>(<a href="http://developer.android.com/reference/android/content/ComponentCallbacks.html">ComponentCallbacks</a> callback)</nobr>
        
        <div class="jd-descrdiv">Remove a <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks.html">ComponentCallbacks</a></code> objec that was previously registered
 with <code><a href="http://developer.android.com/reference/android/content/Context.html#registerComponentCallbacks(android.content.ComponentCallbacks)">registerComponentCallbacks(ComponentCallbacks)</a></code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/Context.html#unregisterReceiver(android.content.BroadcastReceiver)">unregisterReceiver</a></span>(<a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> receiver)</nobr>
        
        <div class="jd-descrdiv">Unregister a previously registered BroadcastReceiver.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"><img id="inherited-methods-java.lang.Object-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From class

  <a href="http://developer.android.com/reference/java/lang/Object.html">java.lang.Object</a>

<div id="inherited-methods-java.lang.Object">
  <div id="inherited-methods-java.lang.Object-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/Object.html">Object</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#clone()">clone</a></span>()</nobr>
        
        <div class="jd-descrdiv">Creates and returns a copy of this <code>Object</code>.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#equals(java.lang.Object)">equals</a></span>(<a href="http://developer.android.com/reference/java/lang/Object.html">Object</a> o)</nobr>
        
        <div class="jd-descrdiv">Compares this instance with the specified object and indicates if they
 are equal.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#finalize()">finalize</a></span>()</nobr>
        
        <div class="jd-descrdiv">Invoked when the garbage collector has detected that this instance is no longer reachable.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            <a href="http://developer.android.com/reference/java/lang/Class.html">Class</a>&lt;?&gt;</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#getClass()">getClass</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns the unique instance of <code><a href="http://developer.android.com/reference/java/lang/Class.html">Class</a></code> that represents this
 object's class.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            int</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#hashCode()">hashCode</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns an integer hash code for this object.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#notify()">notify</a></span>()</nobr>
        
        <div class="jd-descrdiv">Causes a thread which is waiting on this object's monitor (by means of
 calling one of the <code>wait()</code> methods) to be woken up.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#notifyAll()">notifyAll</a></span>()</nobr>
        
        <div class="jd-descrdiv">Causes all threads which are waiting on this object's monitor (by means
 of calling one of the <code>wait()</code> methods) to be woken up.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            
            
            
            <a href="http://developer.android.com/reference/java/lang/String.html">String</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#toString()">toString</a></span>()</nobr>
        
        <div class="jd-descrdiv">Returns a string containing a concise, human-readable description of this
 object.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#wait()">wait</a></span>()</nobr>
        
        <div class="jd-descrdiv">Causes the calling thread to wait until another thread calls the <code>notify()</code> or <code>notifyAll()</code> method of this object.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#wait(long, int)">wait</a></span>(long millis, int nanos)</nobr>
        
        <div class="jd-descrdiv">Causes the calling thread to wait until another thread calls the <code>notify()</code> or <code>notifyAll()</code> method of this object or until the
 specified timeout expires.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            
            
            final
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/java/lang/Object.html#wait(long)">wait</a></span>(long millis)</nobr>
        
        <div class="jd-descrdiv">Causes the calling thread to wait until another thread calls the <code>notify()</code> or <code>notifyAll()</code> method of this object or until the
 specified timeout expires.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.content.ComponentCallbacks" class="jd-expando-trigger closed"><img id="inherited-methods-android.content.ComponentCallbacks-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From interface

  <a href="http://developer.android.com/reference/android/content/ComponentCallbacks.html">android.content.ComponentCallbacks</a>

<div id="inherited-methods-android.content.ComponentCallbacks">
  <div id="inherited-methods-android.content.ComponentCallbacks-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-android.content.ComponentCallbacks-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ComponentCallbacks.html#onConfigurationChanged(android.content.res.Configuration)">onConfigurationChanged</a></span>(<a href="http://developer.android.com/reference/android/content/res/Configuration.html">Configuration</a> newConfig)</nobr>
        
        <div class="jd-descrdiv">Called by the system when the device configuration changes while your
 component is running.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ComponentCallbacks.html#onLowMemory()">onLowMemory</a></span>()</nobr>
        
        <div class="jd-descrdiv">This is called when the overall system is running low on memory, and
 would like actively running process to try to tighten their belt.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.content.ComponentCallbacks2" class="jd-expando-trigger closed"><img id="inherited-methods-android.content.ComponentCallbacks2-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From interface

  <a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html">android.content.ComponentCallbacks2</a>

<div id="inherited-methods-android.content.ComponentCallbacks2">
  <div id="inherited-methods-android.content.ComponentCallbacks2-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-android.content.ComponentCallbacks2-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-14">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int)">onTrimMemory</a></span>(int level)</nobr>
        
        <div class="jd-descrdiv">Called when the operating system has determined that it is a good
 time for a process to trim unneeded memory from its process.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.view.KeyEvent.Callback" class="jd-expando-trigger closed"><img id="inherited-methods-android.view.KeyEvent.Callback-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From interface

  <a href="http://developer.android.com/reference/android/view/KeyEvent.Callback.html">android.view.KeyEvent.Callback</a>

<div id="inherited-methods-android.view.KeyEvent.Callback">
  <div id="inherited-methods-android.view.KeyEvent.Callback-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-android.view.KeyEvent.Callback-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyDown(int, android.view.KeyEvent)">onKeyDown</a></span>(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called when a key down event has occurred.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-5">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyLongPress(int, android.view.KeyEvent)">onKeyLongPress</a></span>(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called when a long press has occurred.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyMultiple(int, int, android.view.KeyEvent)">onKeyMultiple</a></span>(int keyCode, int count, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called when multiple down/up pairs of the same key have occurred
 in a row.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyUp(int, android.view.KeyEvent)">onKeyUp</a></span>(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called when a key up event has occurred.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.view.LayoutInflater.Factory" class="jd-expando-trigger closed"><img id="inherited-methods-android.view.LayoutInflater.Factory-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From interface

  <a href="http://developer.android.com/reference/android/view/LayoutInflater.Factory.html">android.view.LayoutInflater.Factory</a>

<div id="inherited-methods-android.view.LayoutInflater.Factory">
  <div id="inherited-methods-android.view.LayoutInflater.Factory-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-android.view.LayoutInflater.Factory-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/View.html">View</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/LayoutInflater.Factory.html#onCreateView(java.lang.String, android.content.Context, android.util.AttributeSet)">onCreateView</a></span>(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, <a href="http://developer.android.com/reference/android/content/Context.html">Context</a> context, <a href="http://developer.android.com/reference/android/util/AttributeSet.html">AttributeSet</a> attrs)</nobr>
        
        <div class="jd-descrdiv">Hook you can supply that is called when inflating from a LayoutInflater.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.view.LayoutInflater.Factory2" class="jd-expando-trigger closed"><img id="inherited-methods-android.view.LayoutInflater.Factory2-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From interface

  <a href="http://developer.android.com/reference/android/view/LayoutInflater.Factory2.html">android.view.LayoutInflater.Factory2</a>

<div id="inherited-methods-android.view.LayoutInflater.Factory2">
  <div id="inherited-methods-android.view.LayoutInflater.Factory2-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-android.view.LayoutInflater.Factory2-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/View.html">View</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/LayoutInflater.Factory2.html#onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet)">onCreateView</a></span>(<a href="http://developer.android.com/reference/android/view/View.html">View</a> parent, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, <a href="http://developer.android.com/reference/android/content/Context.html">Context</a> context, <a href="http://developer.android.com/reference/android/util/AttributeSet.html">AttributeSet</a> attrs)</nobr>
        
        <div class="jd-descrdiv">Version of <code><a href="http://developer.android.com/reference/android/view/LayoutInflater.Factory.html#onCreateView(java.lang.String, android.content.Context, android.util.AttributeSet)">onCreateView(String, Context, AttributeSet)</a></code>
 that also supplies the parent that the view created view will be
 placed in.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.view.View.OnCreateContextMenuListener" class="jd-expando-trigger closed"><img id="inherited-methods-android.view.View.OnCreateContextMenuListener-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From interface

  <a href="http://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html">android.view.View.OnCreateContextMenuListener</a>

<div id="inherited-methods-android.view.View.OnCreateContextMenuListener">
  <div id="inherited-methods-android.view.View.OnCreateContextMenuListener-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-android.view.View.OnCreateContextMenuListener-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html#onCreateContextMenu(android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo)">onCreateContextMenu</a></span>(<a href="http://developer.android.com/reference/android/view/ContextMenu.html">ContextMenu</a> menu, <a href="http://developer.android.com/reference/android/view/View.html">View</a> v, <a href="http://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html">ContextMenu.ContextMenuInfo</a> menuInfo)</nobr>
        
        <div class="jd-descrdiv">Called when the context menu for this view is being built.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-">
<td colspan="12">
  <a href="http://developer.android.com/reference/android/app/Activity.html#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.view.Window.Callback" class="jd-expando-trigger closed"><img id="inherited-methods-android.view.Window.Callback-trigger" src="./Activity_files/triangle-closed.png" class="jd-expando-trigger-img"></a>
From interface

  <a href="http://developer.android.com/reference/android/view/Window.Callback.html">android.view.Window.Callback</a>

<div id="inherited-methods-android.view.Window.Callback">
  <div id="inherited-methods-android.view.Window.Callback-list" class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-android.view.Window.Callback-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tbody><tr class="alt-color api apilevel-12">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#dispatchGenericMotionEvent(android.view.MotionEvent)">dispatchGenericMotionEvent</a></span>(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called to process generic motion events.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#dispatchKeyEvent(android.view.KeyEvent)">dispatchKeyEvent</a></span>(<a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called to process key events.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#dispatchKeyShortcutEvent(android.view.KeyEvent)">dispatchKeyShortcutEvent</a></span>(<a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called to process a key shortcut event.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-4">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)">dispatchPopulateAccessibilityEvent</a></span>(<a href="http://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html">AccessibilityEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called to process population of <code><a href="http://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html">AccessibilityEvent</a></code>s.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#dispatchTouchEvent(android.view.MotionEvent)">dispatchTouchEvent</a></span>(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called to process touch screen events.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#dispatchTrackballEvent(android.view.MotionEvent)">dispatchTrackballEvent</a></span>(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> event)</nobr>
        
        <div class="jd-descrdiv">Called to process trackball events.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onActionModeFinished(android.view.ActionMode)">onActionModeFinished</a></span>(<a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a> mode)</nobr>
        
        <div class="jd-descrdiv">Called when an action mode has been finished.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-11">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onActionModeStarted(android.view.ActionMode)">onActionModeStarted</a></span>(<a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a> mode)</nobr>
        
        <div class="jd-descrdiv">Called when an action mode has been started.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-5">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onAttachedToWindow()">onAttachedToWindow</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called when the window has been attached to the window manager.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onContentChanged()">onContentChanged</a></span>()</nobr>
        
        <div class="jd-descrdiv">This hook is called whenever the content view of the screen changes
 (due to a call to
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setContentView(android.view.View, android.view.ViewGroup.LayoutParams)">Window.setContentView</a></code> or
 <code><a href="http://developer.android.com/reference/android/view/Window.html#addContentView(android.view.View, android.view.ViewGroup.LayoutParams)">Window.addContentView</a></code>).</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onCreatePanelMenu(int, android.view.Menu)">onCreatePanelMenu</a></span>(int featureId, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">Initialize the contents of the menu for panel 'featureId'.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/View.html">View</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onCreatePanelView(int)">onCreatePanelView</a></span>(int featureId)</nobr>
        
        <div class="jd-descrdiv">Instantiate the view to display in the panel for 'featureId'.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-5">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onDetachedFromWindow()">onDetachedFromWindow</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called when the window has been attached to the window manager.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onMenuItemSelected(int, android.view.MenuItem)">onMenuItemSelected</a></span>(int featureId, <a href="http://developer.android.com/reference/android/view/MenuItem.html">MenuItem</a> item)</nobr>
        
        <div class="jd-descrdiv">Called when a panel's menu item has been selected by the user.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onMenuOpened(int, android.view.Menu)">onMenuOpened</a></span>(int featureId, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">Called when a panel's menu is opened by the user.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onPanelClosed(int, android.view.Menu)">onPanelClosed</a></span>(int featureId, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">Called when a panel is being closed.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onPreparePanel(int, android.view.View, android.view.Menu)">onPreparePanel</a></span>(int featureId, <a href="http://developer.android.com/reference/android/view/View.html">View</a> view, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</nobr>
        
        <div class="jd-descrdiv">Prepare a panel to be displayed.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            boolean</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onSearchRequested()">onSearchRequested</a></span>()</nobr>
        
        <div class="jd-descrdiv">Called when the user signals the desire to start a search.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onWindowAttributesChanged(android.view.WindowManager.LayoutParams)">onWindowAttributesChanged</a></span>(<a href="http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html">WindowManager.LayoutParams</a> attrs)</nobr>
        
        <div class="jd-descrdiv">This is called whenever the current window attributes change.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-1">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            void</nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onWindowFocusChanged(boolean)">onWindowFocusChanged</a></span>(boolean hasFocus)</nobr>
        
        <div class="jd-descrdiv">This hook is called whenever the window focus changes.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-11">
        <td class="jd-typecol"><nobr>
            abstract
            
            
            
            
            <a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a></nobr>
        </td>
        <td class="jd-linkcol" width="100%"><nobr>
        <span class="sympad"><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onWindowStartingActionMode(android.view.ActionMode.Callback)">onWindowStartingActionMode</a></span>(<a href="http://developer.android.com/reference/android/view/ActionMode.Callback.html">ActionMode.Callback</a> callback)</nobr>
        
        <div class="jd-descrdiv">Called when an action mode is being started for this window.</div>
  
  </td></tr>


</tbody></table>
  </div>
</div>
</td></tr>


</tbody></table>


</div><!-- jd-descr (summary) -->

<!-- Details -->








<!-- XML Attributes -->


<!-- Enum Values -->


<!-- Constants -->


<!-- ========= ENUM CONSTANTS DETAIL ======== -->
<h2 style="margin-bottom: 0px;">Constants</h2><hr>




<a name="DEFAULT_KEYS_DIALER"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        DEFAULT_KEYS_DIALER
    </h4>
      <div class="api-level">
        
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Use with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to launch the dialer during default
 key handling.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code></li>
      </ul>
  </div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                1
                (0x00000001)
            
        </span>
        </div>
    
    </div>
</div>



<a name="DEFAULT_KEYS_DISABLE"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        DEFAULT_KEYS_DISABLE
    </h4>
      <div class="api-level">
        
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Use with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to turn off default handling of
 keys.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code></li>
      </ul>
  </div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                0
                (0x00000000)
            
        </span>
        </div>
    
    </div>
</div>



<a name="DEFAULT_KEYS_SEARCH_GLOBAL"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        DEFAULT_KEYS_SEARCH_GLOBAL
    </h4>
      <div class="api-level">
        
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Use with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to specify that unhandled keystrokes
 will start a global search (typically web search, but some platforms may define alternate
 methods for global search)
 
 </p><p>See <code><a href="http://developer.android.com/reference/android/app/SearchManager.html">android.app.SearchManager</a></code> for more details.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code></li>
      </ul>
  </div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                4
                (0x00000004)
            
        </span>
        </div>
    
    </div>
</div>



<a name="DEFAULT_KEYS_SEARCH_LOCAL"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        DEFAULT_KEYS_SEARCH_LOCAL
    </h4>
      <div class="api-level">
        
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Use with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to specify that unhandled keystrokes
 will start an application-defined search.  (If the application or activity does not
 actually define a search, the the keys will be ignored.)
 
 </p><p>See <code><a href="http://developer.android.com/reference/android/app/SearchManager.html">android.app.SearchManager</a></code> for more details.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code></li>
      </ul>
  </div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                3
                (0x00000003)
            
        </span>
        </div>
    
    </div>
</div>



<a name="DEFAULT_KEYS_SHORTCUT"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        DEFAULT_KEYS_SHORTCUT
    </h4>
      <div class="api-level">
        
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Use with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to execute a menu shortcut in
 default key handling.
 
 </p><p>That is, the user does not need to hold down the menu key to execute menu shortcuts.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code></li>
      </ul>
  </div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                2
                (0x00000002)
            
        </span>
        </div>
    
    </div>
</div>



<a name="RESULT_CANCELED"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        RESULT_CANCELED
    </h4>
      <div class="api-level">
        
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Standard activity result: operation canceled. </p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                0
                (0x00000000)
            
        </span>
        </div>
    
    </div>
</div>



<a name="RESULT_FIRST_USER"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        RESULT_FIRST_USER
    </h4>
      <div class="api-level">
        
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Start of user-defined activity results. </p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                1
                (0x00000001)
            
        </span>
        </div>
    
    </div>
</div>



<a name="RESULT_OK"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        RESULT_OK
    </h4>
      <div class="api-level">
        
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Standard activity result: operation succeeded. </p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                -1
                (0xffffffff)
            
        </span>
        </div>
    
    </div>
</div>




<!-- Fields -->


<!-- ========= FIELD DETAIL ======== -->
<h2 style="margin-bottom: 0px;">Fields</h2><hr>




<a name="FOCUSED_STATE_SET"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
        static 
        final 
        int[]
      </span>
        FOCUSED_STATE_SET
    </h4>
      <div class="api-level">
        
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
    </div>
</div>




<!-- Public ctors -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->
<h2 style="margin-bottom: 0px;">Public Constructors</h2><hr>



<a name="Activity()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        
      </span>
      <span class="sympad">Activity</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>





<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- Protected ctors -->



<!-- ========= METHOD DETAIL ======== -->
<!-- Public methdos -->

<h2 style="margin-bottom: 0px;">Public Methods</h2><hr>



<a name="addContentView(android.view.View, android.view.ViewGroup.LayoutParams)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">addContentView</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view, <a href="http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html">ViewGroup.LayoutParams</a> params)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Add an additional content view to the activity.  Added after any existing
 ones in the activity -- existing views are NOT removed.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>view
          </th><td>The desired content to display.</td>
        </tr>
        <tr>
          <th>params
          </th><td>Layout parameters for the view.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="closeContextMenu()"></a>

<div class="jd-details api apilevel-3"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">closeContextMenu</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 3</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Programmatically closes the most recently opened context menu, if showing.
</p></div>

    </div>
</div>


<a name="closeOptionsMenu()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">closeOptionsMenu</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Progammatically closes the options menu. If the options menu is already
 closed, this method does nothing.
</p></div>

    </div>
</div>


<a name="createPendingResult(int, android.content.Intent, int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/app/PendingIntent.html">PendingIntent</a>
      </span>
      <span class="sympad">createPendingResult</span>
      <span class="normal">(int requestCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> data, int flags)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Create a new PendingIntent object which you can hand to others 
 for them to use to send result data back to your 
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)">onActivityResult(int, int, Intent)</a></code> callback.  The created object will be either 
 one-shot (becoming invalid after a result is sent back) or multiple 
 (allowing any number of results to be sent through it).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>requestCode
          </th><td>Private request code for the sender that will be
 associated with the result data when it is returned.  The sender can not
 modify this value, allowing you to identify incoming results.</td>
        </tr>
        <tr>
          <th>data
          </th><td>Default data to supply in the result, which may be modified
 by the sender.</td>
        </tr>
        <tr>
          <th>flags
          </th><td>May be <code><a href="http://developer.android.com/reference/android/app/PendingIntent.html#FLAG_ONE_SHOT">PendingIntent.FLAG_ONE_SHOT</a></code>,
 <code><a href="http://developer.android.com/reference/android/app/PendingIntent.html#FLAG_NO_CREATE">PendingIntent.FLAG_NO_CREATE</a></code>,
 <code><a href="http://developer.android.com/reference/android/app/PendingIntent.html#FLAG_CANCEL_CURRENT">PendingIntent.FLAG_CANCEL_CURRENT</a></code>,
 <code><a href="http://developer.android.com/reference/android/app/PendingIntent.html#FLAG_UPDATE_CURRENT">PendingIntent.FLAG_UPDATE_CURRENT</a></code>,
 or any of the flags as supported by
 <code><a href="http://developer.android.com/reference/android/content/Intent.html#fillIn(android.content.Intent, int)">Intent.fillIn()</a></code> to control which unspecified parts
 of the intent that can be supplied when the actual send happens.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns an existing or new PendingIntent matching the given
 parameters.  May return null only if
 <code><a href="http://developer.android.com/reference/android/app/PendingIntent.html#FLAG_NO_CREATE">PendingIntent.FLAG_NO_CREATE</a></code> has been
 supplied.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/PendingIntent.html">PendingIntent</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="dismissDialog(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">dismissDialog</span>
      <span class="normal">(int id)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 13</strong>.<br> Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>Dismiss a dialog that was previously shown via <code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int)">showDialog(int)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>id
          </th><td>The id of the managed dialog.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th><a href="http://developer.android.com/reference/java/lang/IllegalArgumentException.html">IllegalArgumentException</a>
            </th><td>if the id was not previously shown via
   <code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int)">showDialog(int)</a></code>.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int, android.os.Bundle)">onCreateDialog(int, Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog, android.os.Bundle)">onPrepareDialog(int, Dialog, Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int)">showDialog(int)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#removeDialog(int)">removeDialog(int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="dispatchGenericMotionEvent(android.view.MotionEvent)"></a>

<div class="jd-details api apilevel-12"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">dispatchGenericMotionEvent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> ev)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 12</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called to process generic motion events.  You can override this to
 intercept all generic motion events before they are dispatched to the
 window.  Be sure to call this implementation for generic motion events
 that should be handled normally.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>ev
          </th><td>The generic motion event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>boolean Return true if this event was consumed.
</li></ul>
  </div>

    </div>
</div>


<a name="dispatchKeyEvent(android.view.KeyEvent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">dispatchKeyEvent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called to process key events.  You can override this to intercept all 
 key events before they are dispatched to the window.  Be sure to call 
 this implementation for key events that should be handled normally.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>event
          </th><td>The key event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>boolean Return true if this event was consumed.
</li></ul>
  </div>

    </div>
</div>


<a name="dispatchKeyShortcutEvent(android.view.KeyEvent)"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">dispatchKeyShortcutEvent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called to process a key shortcut event.
 You can override this to intercept all key shortcut events before they are
 dispatched to the window.  Be sure to call this implementation for key shortcut
 events that should be handled normally.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>event
          </th><td>The key shortcut event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>True if this event was consumed.
</li></ul>
  </div>

    </div>
</div>


<a name="dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)"></a>

<div class="jd-details api apilevel-4"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">dispatchPopulateAccessibilityEvent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html">AccessibilityEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 4</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called to process population of <code><a href="http://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html">AccessibilityEvent</a></code>s.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>event
          </th><td>The event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>boolean Return true if event population was completed.
</li></ul>
  </div>

    </div>
</div>


<a name="dispatchTouchEvent(android.view.MotionEvent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">dispatchTouchEvent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> ev)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called to process touch screen events.  You can override this to
 intercept all touch screen events before they are dispatched to the
 window.  Be sure to call this implementation for touch screen events
 that should be handled normally.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>ev
          </th><td>The touch screen event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>boolean Return true if this event was consumed.
</li></ul>
  </div>

    </div>
</div>


<a name="dispatchTrackballEvent(android.view.MotionEvent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">dispatchTrackballEvent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> ev)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called to process trackball events.  You can override this to
 intercept all trackball events before they are dispatched to the
 window.  Be sure to call this implementation for trackball events
 that should be handled normally.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>ev
          </th><td>The trackball event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>boolean Return true if this event was consumed.
</li></ul>
  </div>

    </div>
</div>


<a name="dump(java.lang.String, java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[])"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">dump</span>
      <span class="normal">(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> prefix, <a href="http://developer.android.com/reference/java/io/FileDescriptor.html">FileDescriptor</a> fd, <a href="http://developer.android.com/reference/java/io/PrintWriter.html">PrintWriter</a> writer, <a href="http://developer.android.com/reference/java/lang/String.html">String[]</a> args)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Print the Activity's state into the given stream.  This gets invoked if
 you run "adb shell dumpsys activity &lt;activity_component_name&gt;".</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>prefix
          </th><td>Desired prefix to prepend at each line of output.</td>
        </tr>
        <tr>
          <th>fd
          </th><td>The raw file descriptor that the dump is being sent to.</td>
        </tr>
        <tr>
          <th>writer
          </th><td>The PrintWriter to which you should dump your state.  This will be
 closed for you after you return.</td>
        </tr>
        <tr>
          <th>args
          </th><td>additional arguments to the dump request.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="findViewById(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/View.html">View</a>
      </span>
      <span class="sympad">findViewById</span>
      <span class="normal">(int id)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Finds a view that was identified by the id attribute from the XML that
 was processed in <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The view if found or null otherwise.
</li></ul>
  </div>

    </div>
</div>


<a name="finish()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">finish</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Call this when your activity is done and should be closed.  The
 ActivityResult is propagated back to whoever launched you via
 onActivityResult().
</p></div>

    </div>
</div>


<a name="finishActivity(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">finishActivity</span>
      <span class="normal">(int requestCode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Force finish another activity that you had previously started with
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>requestCode
          </th><td>The request code of the activity that you had
                    given to startActivityForResult().  If there are multiple
                    activities started with this request code, they
                    will all be finished.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="finishActivityFromChild(android.app.Activity, int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">finishActivityFromChild</span>
      <span class="normal">(<a href="./Activity_files/Activity.htm">Activity</a> child, int requestCode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This is called when a child activity of this one calls its
 finishActivity().</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>child
          </th><td>The activity making the call.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>Request code that had been used to start the
                    activity.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="finishAffinity()"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">finishAffinity</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Finish this activity as well as all activities immediately below it
 in the current task that have the same affinity.  This is typically
 used when an application can be launched on to another task (such as
 from an ACTION_VIEW of a content type it understands) and the user
 has used the up navigation to switch out of the current task and in
 to its own task.  In this case, if the user has navigated down into
 any other activities of the second application, all of those should
 be removed from the original task as part of the task switch.

 </p><p>Note that this finish does <em>not</em> allow you to deliver results
 to the previous activity, and an exception will be thrown if you are trying
 to do so.</p>
<p></p></div>

    </div>
</div>


<a name="finishFromChild(android.app.Activity)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">finishFromChild</span>
      <span class="normal">(<a href="./Activity_files/Activity.htm">Activity</a> child)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This is called when a child activity of this one calls its 
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code> method.  The default implementation simply calls
 finish() on this activity (the parent), finishing the entire group.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>child
          </th><td>The activity making the call.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="getActionBar()"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/app/ActionBar.html">ActionBar</a>
      </span>
      <span class="sympad">getActionBar</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Retrieve a reference to this activity's ActionBar.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The Activity's ActionBar, or null if it does not have one.
</li></ul>
  </div>

    </div>
</div>


<a name="getApplication()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        <a href="http://developer.android.com/reference/android/app/Application.html">Application</a>
      </span>
      <span class="sympad">getApplication</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the application that owns this activity. </p></div>

    </div>
</div>


<a name="getCallingActivity()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/content/ComponentName.html">ComponentName</a>
      </span>
      <span class="sympad">getCallingActivity</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the name of the activity that invoked this activity.  This is
 who the data in <code><a href="http://developer.android.com/reference/android/app/Activity.html#setResult(int)">setResult()</a></code> will be sent to.  You
 can use this information to validate that the recipient is allowed to
 receive the data.
 
 </p><p>Note: if the calling activity is not expecting a result (that is it
 did not use the <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code> 
 form that includes a request code), then the calling package will be 
 null.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>String The full name of the activity that will receive your
         reply, or null if none.
</li></ul>
  </div>

    </div>
</div>


<a name="getCallingPackage()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/java/lang/String.html">String</a>
      </span>
      <span class="sympad">getCallingPackage</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the name of the package that invoked this activity.  This is who
 the data in <code><a href="http://developer.android.com/reference/android/app/Activity.html#setResult(int)">setResult()</a></code> will be sent to.  You can
 use this information to validate that the recipient is allowed to
 receive the data.
 
 </p><p>Note: if the calling activity is not expecting a result (that is it
 did not use the <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code> 
 form that includes a request code), then the calling package will be 
 null.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The package of the activity that will receive your
         reply, or null if none.
</li></ul>
  </div>

    </div>
</div>


<a name="getChangingConfigurations()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getChangingConfigurations</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>If this activity is being destroyed because it can not handle a
 configuration parameter being changed (and thus its
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)">onConfigurationChanged(Configuration)</a></code> method is
 <em>not</em> being called), then you can use this method to discover
 the set of changes that have occurred while in the process of being
 destroyed.  Note that there is no guarantee that these will be
 accurate (other changes could have happened at any time), so you should
 only use this as an optimization hint.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns a bit field of the configuration parameters that are
 changing, as defined by the <code><a href="http://developer.android.com/reference/android/content/res/Configuration.html">Configuration</a></code>
 class.
</li></ul>
  </div>

    </div>
</div>


<a name="getComponentName()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/content/ComponentName.html">ComponentName</a>
      </span>
      <span class="sympad">getComponentName</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns complete component name of this activity.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns the complete component name for this activity
</li></ul>
  </div>

    </div>
</div>


<a name="getCurrentFocus()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/View.html">View</a>
      </span>
      <span class="sympad">getCurrentFocus</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Calls <code><a href="http://developer.android.com/reference/android/view/Window.html#getCurrentFocus()">getCurrentFocus()</a></code> on the
 Window of this Activity to return the currently focused view.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>View The current View with focus or null.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#getWindow()">getWindow()</a></code></li><li><code><a href="http://developer.android.com/reference/android/view/Window.html#getCurrentFocus()">getCurrentFocus()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="getFragmentManager()"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a>
      </span>
      <span class="sympad">getFragmentManager</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the FragmentManager for interacting with fragments associated
 with this activity.
</p></div>

    </div>
</div>


<a name="getIntent()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a>
      </span>
      <span class="sympad">getIntent</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the intent that started this activity. </p></div>

    </div>
</div>


<a name="getLastNonConfigurationInstance()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/java/lang/Object.html">Object</a>
      </span>
      <span class="sympad">getLastNonConfigurationInstance</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 13</strong>.<br> Use the new <code><a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a></code> API
 <code><a href="http://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean)">setRetainInstance(boolean)</a></code> instead; this is also
 available on older platforms through the Android compatibility package.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>Retrieve the non-configuration instance data that was previously
 returned by <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance()">onRetainNonConfigurationInstance()</a></code>.  This will
 be available from the initial <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> and
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code> calls to the new instance, allowing you to extract
 any useful dynamic state from the previous instance.
 
 </p><p>Note that the data you retrieve here should <em>only</em> be used
 as an optimization for handling configuration changes.  You should always
 be able to handle getting a null pointer back, and an activity must
 still be able to restore itself to its previous state (through the
 normal <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code> mechanism) even if this
 function returns null.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns the object previously returned by
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance()">onRetainNonConfigurationInstance()</a></code>.</li></ul>
  </div>

    </div>
</div>


<a name="getLayoutInflater()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/LayoutInflater.html">LayoutInflater</a>
      </span>
      <span class="sympad">getLayoutInflater</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#getLayoutInflater()">getLayoutInflater()</a></code>.
</p></div>

    </div>
</div>


<a name="getLoaderManager()"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/app/LoaderManager.html">LoaderManager</a>
      </span>
      <span class="sympad">getLoaderManager</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the LoaderManager for this fragment, creating it if needed.
</p></div>

    </div>
</div>


<a name="getLocalClassName()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/java/lang/String.html">String</a>
      </span>
      <span class="sympad">getLocalClassName</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns class name for this activity with the package prefix removed.
 This is the default name used to read and write settings.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The local class name.
</li></ul>
  </div>

    </div>
</div>


<a name="getMenuInflater()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/MenuInflater.html">MenuInflater</a>
      </span>
      <span class="sympad">getMenuInflater</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="http://developer.android.com/reference/android/view/MenuInflater.html">MenuInflater</a></code> with this context.
</p></div>

    </div>
</div>


<a name="getParent()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        <a href="./Activity_files/Activity.htm">Activity</a>
      </span>
      <span class="sympad">getParent</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the parent activity if this view is an embedded child. </p></div>

    </div>
</div>


<a name="getParentActivityIntent()"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a>
      </span>
      <span class="sympad">getParentActivityIntent</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Obtain an <code><a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a></code> that will launch an explicit target activity specified by
 this activity's logical parent. The logical parent is named in the application's manifest
 by the <code><a href="http://developer.android.com/reference/android/R.attr.html#parentActivityName">parentActivityName</a></code> attribute.
 Activity subclasses may override this method to modify the Intent returned by
 super.getParentActivityIntent() or to implement a different mechanism of retrieving
 the parent intent entirely.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>a new Intent targeting the defined parent of this activity or null if
         there is no valid parent.
</li></ul>
  </div>

    </div>
</div>


<a name="getPreferences(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/content/SharedPreferences.html">SharedPreferences</a>
      </span>
      <span class="sympad">getPreferences</span>
      <span class="normal">(int mode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Retrieve a <code><a href="http://developer.android.com/reference/android/content/SharedPreferences.html">SharedPreferences</a></code> object for accessing preferences
 that are private to this activity.  This simply calls the underlying
 <code><a href="http://developer.android.com/reference/android/content/ContextWrapper.html#getSharedPreferences(java.lang.String, int)">getSharedPreferences(String, int)</a></code> method by passing in this activity's
 class name as the preferences name.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>mode
          </th><td>Operating mode.  Use <code><a href="http://developer.android.com/reference/android/content/Context.html#MODE_PRIVATE">MODE_PRIVATE</a></code> for the default 
             operation, <code><a href="http://developer.android.com/reference/android/content/Context.html#MODE_WORLD_READABLE">MODE_WORLD_READABLE</a></code> and 
             <code><a href="http://developer.android.com/reference/android/content/Context.html#MODE_WORLD_WRITEABLE">MODE_WORLD_WRITEABLE</a></code> to control permissions.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns the single SharedPreferences instance that can be used
         to retrieve and modify the preference values.
</li></ul>
  </div>

    </div>
</div>


<a name="getRequestedOrientation()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getRequestedOrientation</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the current requested orientation of the activity.  This will
 either be the orientation requested in its component's manifest, or
 the last requested orientation given to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#setRequestedOrientation(int)">setRequestedOrientation(int)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns an orientation constant as used in
 <code><a href="http://developer.android.com/reference/android/content/pm/ActivityInfo.html#screenOrientation">ActivityInfo.screenOrientation</a></code>.
</li></ul>
  </div>

    </div>
</div>


<a name="getSystemService(java.lang.String)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/java/lang/Object.html">Object</a>
      </span>
      <span class="sympad">getSystemService</span>
      <span class="normal">(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the handle to a system-level service by name. The class of the
 returned object varies by the requested name. Currently available names
 are:

 </p><dl>
  <dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#WINDOW_SERVICE">WINDOW_SERVICE</a></code> ("window")
  </dt><dd> The top-level window manager in which you can place custom
  windows.  The returned object is a <code><a href="http://developer.android.com/reference/android/view/WindowManager.html">WindowManager</a></code>.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#LAYOUT_INFLATER_SERVICE">LAYOUT_INFLATER_SERVICE</a></code> ("layout_inflater")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/view/LayoutInflater.html">LayoutInflater</a></code> for inflating layout resources
  in this context.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#ACTIVITY_SERVICE">ACTIVITY_SERVICE</a></code> ("activity")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/app/ActivityManager.html">ActivityManager</a></code> for interacting with the
  global activity state of the system.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#POWER_SERVICE">POWER_SERVICE</a></code> ("power")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/os/PowerManager.html">PowerManager</a></code> for controlling power
  management.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#ALARM_SERVICE">ALARM_SERVICE</a></code> ("alarm")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/app/AlarmManager.html">AlarmManager</a></code> for receiving intents at the
  time of your choosing.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#NOTIFICATION_SERVICE">NOTIFICATION_SERVICE</a></code> ("notification")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/app/NotificationManager.html">NotificationManager</a></code> for informing the user
   of background events.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#KEYGUARD_SERVICE">KEYGUARD_SERVICE</a></code> ("keyguard")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/app/KeyguardManager.html">KeyguardManager</a></code> for controlling keyguard.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#LOCATION_SERVICE">LOCATION_SERVICE</a></code> ("location")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/location/LocationManager.html">LocationManager</a></code> for controlling location
   (e.g., GPS) updates.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#SEARCH_SERVICE">SEARCH_SERVICE</a></code> ("search")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/app/SearchManager.html">SearchManager</a></code> for handling search.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#VIBRATOR_SERVICE">VIBRATOR_SERVICE</a></code> ("vibrator")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/os/Vibrator.html">Vibrator</a></code> for interacting with the vibrator
  hardware.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#CONNECTIVITY_SERVICE">CONNECTIVITY_SERVICE</a></code> ("connection")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/net/ConnectivityManager.html">ConnectivityManager</a></code> for
  handling management of network connections.
  </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#WIFI_SERVICE">WIFI_SERVICE</a></code> ("wifi")
  </dt><dd> A <code><a href="http://developer.android.com/reference/android/net/wifi/WifiManager.html">WifiManager</a></code> for management of
 Wi-Fi connectivity.
 </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#INPUT_METHOD_SERVICE">INPUT_METHOD_SERVICE</a></code> ("input_method")
 </dt><dd> An <code><a href="http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html">InputMethodManager</a></code>
 for management of input methods.
 </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#UI_MODE_SERVICE">UI_MODE_SERVICE</a></code> ("uimode")
 </dt><dd> An <code><a href="http://developer.android.com/reference/android/app/UiModeManager.html">UiModeManager</a></code> for controlling UI modes.
 </dd><dt> <code><a href="http://developer.android.com/reference/android/content/Context.html#DOWNLOAD_SERVICE">DOWNLOAD_SERVICE</a></code> ("download")
 </dt><dd> A <code><a href="http://developer.android.com/reference/android/app/DownloadManager.html">DownloadManager</a></code> for requesting HTTP downloads
 </dd></dl>

 <p>Note:  System services obtained via this API may be closely associated with
 the Context in which they are obtained from.  In general, do not share the
 service objects between various different contexts (Activities, Applications,
 Services, Providers, etc.)</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>name
          </th><td>The name of the desired service.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The service or null if the name does not exist.</li></ul>
  </div>

    </div>
</div>


<a name="getTaskId()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getTaskId</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return the identifier of the task this activity is in.  This identifier
 will remain the same for the lifetime of the activity.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Task identifier, an opaque integer.
</li></ul>
  </div>

    </div>
</div>


<a name="getTitle()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        <a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a>
      </span>
      <span class="sympad">getTitle</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a name="getTitleColor()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        int
      </span>
      <span class="sympad">getTitleColor</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a name="getVolumeControlStream()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        int
      </span>
      <span class="sympad">getVolumeControlStream</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the suggested audio stream whose volume should be changed by the
 harwdare volume controls.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The suggested audio stream type whose volume should be changed by
         the hardware volume controls.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setVolumeControlStream(int)">setVolumeControlStream(int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="getWindow()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/Window.html">Window</a>
      </span>
      <span class="sympad">getWindow</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Retrieve the current <code><a href="http://developer.android.com/reference/android/view/Window.html">Window</a></code> for the activity.
 This can be used to directly access parts of the Window API that
 are not available through Activity/Screen.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Window The current window, or null if the activity is not
         visual.
</li></ul>
  </div>

    </div>
</div>


<a name="getWindowManager()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/WindowManager.html">WindowManager</a>
      </span>
      <span class="sympad">getWindowManager</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Retrieve the window manager for showing custom windows. </p></div>

    </div>
</div>


<a name="hasWindowFocus()"></a>

<div class="jd-details api apilevel-3"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">hasWindowFocus</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 3</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns true if this activity's <em>main</em> window currently has window focus.
 Note that this is not the same as the view itself having focus.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>True if this activity's main window currently has window focus.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onWindowAttributesChanged(android.view.WindowManager.LayoutParams)">onWindowAttributesChanged(android.view.WindowManager.LayoutParams)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="invalidateOptionsMenu()"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">invalidateOptionsMenu</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Declare that the options menu has changed, so should be recreated.
 The <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateOptionsMenu(android.view.Menu)">onCreateOptionsMenu(Menu)</a></code> method will be called the next
 time it needs to be displayed.
</p></div>

    </div>
</div>


<a name="isChangingConfigurations()"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isChangingConfigurations</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Check to see whether this activity is in the process of being destroyed in order to be
 recreated with a new configuration. This is often used in
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code> to determine whether the state needs to be cleaned up or will be passed
 on to the next instance of the activity via <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance()">onRetainNonConfigurationInstance()</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>If the activity is being torn down in order to be recreated with a new configuration,
 returns true; else returns false.
</li></ul>
  </div>

    </div>
</div>


<a name="isChild()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        boolean
      </span>
      <span class="sympad">isChild</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Is this activity embedded inside of another activity? </p></div>

    </div>
</div>


<a name="isDestroyed()"></a>

<div class="jd-details api apilevel-17"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isDestroyed</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 17</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns true if the final <code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code> call has been made
 on the Activity, so this instance is now dead.
</p></div>

    </div>
</div>


<a name="isFinishing()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isFinishing</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Check to see whether this activity is in the process of finishing,
 either because you called <code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code> on it or someone else
 has requested that it finished.  This is often used in
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> to determine whether the activity is simply pausing or
 completely finishing.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>If the activity is finishing, returns true; else returns false.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="isTaskRoot()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isTaskRoot</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Return whether this activity is the root of a task.  The root is the
 first activity in a task.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>True if this is the root activity, else false.
</li></ul>
  </div>

    </div>
</div>


<a name="managedQuery(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        <a href="http://developer.android.com/reference/android/database/Cursor.html">Cursor</a>
      </span>
      <span class="sympad">managedQuery</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri, <a href="http://developer.android.com/reference/java/lang/String.html">String[]</a> projection, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> selection, <a href="http://developer.android.com/reference/java/lang/String.html">String[]</a> selectionArgs, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> sortOrder)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 11</strong>.<br> Use <code><a href="http://developer.android.com/reference/android/content/CursorLoader.html">CursorLoader</a></code> instead.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>Wrapper around
 <code><a href="http://developer.android.com/reference/android/content/ContentResolver.html#query(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)">query(android.net.Uri, String[], String, String[], String)</a></code>
 that gives the resulting <code><a href="http://developer.android.com/reference/android/database/Cursor.html">Cursor</a></code> to call
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startManagingCursor(android.database.Cursor)">startManagingCursor(Cursor)</a></code> so that the activity will manage its
 lifecycle for you.
 
 <em>If you are targeting <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB">HONEYCOMB</a></code>
 or later, consider instead using <code><a href="http://developer.android.com/reference/android/app/LoaderManager.html">LoaderManager</a></code> instead, available
 via <code><a href="http://developer.android.com/reference/android/app/Activity.html#getLoaderManager()">getLoaderManager()</a></code>.</em>

 </p><p><strong>Warning:</strong> Do not call <code><a href="http://developer.android.com/reference/android/database/Cursor.html#close()">close()</a></code> on a cursor obtained using
 this method, because the activity will do that for you at the appropriate time. However, if
 you call <code><a href="http://developer.android.com/reference/android/app/Activity.html#stopManagingCursor(android.database.Cursor)">stopManagingCursor(Cursor)</a></code> on a cursor from a managed query, the system <em>will
 not</em> automatically close the cursor and, in that case, you must call
 <code><a href="http://developer.android.com/reference/android/database/Cursor.html#close()">close()</a></code>.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>uri
          </th><td>The URI of the content provider to query.</td>
        </tr>
        <tr>
          <th>projection
          </th><td>List of columns to return.</td>
        </tr>
        <tr>
          <th>selection
          </th><td>SQL WHERE clause.</td>
        </tr>
        <tr>
          <th>selectionArgs
          </th><td>The arguments to selection, if any ?s are pesent</td>
        </tr>
        <tr>
          <th>sortOrder
          </th><td>SQL ORDER BY clause.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The Cursor that was returned by query().</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/content/ContentResolver.html#query(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)">query(android.net.Uri, String[], String, String[], String)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startManagingCursor(android.database.Cursor)">startManagingCursor(Cursor)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="moveTaskToBack(boolean)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">moveTaskToBack</span>
      <span class="normal">(boolean nonRoot)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Move the task containing this activity to the back of the activity
 stack.  The activity's order within the task is unchanged.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>nonRoot
          </th><td>If false then this only works if the activity is the root
                of a task; if true it will work for any activity in
                a task.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>If the task was moved (or it was already at the
         back) true is returned, else false.
</li></ul>
  </div>

    </div>
</div>


<a name="navigateUpTo(android.content.Intent)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">navigateUpTo</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> upIntent)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Navigate from this activity to the activity specified by upIntent, finishing this activity
 in the process. If the activity indicated by upIntent already exists in the task's history,
 this activity and all others before the indicated activity in the history stack will be
 finished.

 </p><p>If the indicated activity does not appear in the history stack, this will finish
 each activity in this task until the root activity of the task is reached, resulting in
 an "in-app home" behavior. This can be useful in apps with a complex navigation hierarchy
 when an activity may be reached by a path not passing through a canonical parent
 activity.</p>

 <p>This method should be used when performing up navigation from within the same task
 as the destination. If up navigation should cross tasks in some cases, see
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#shouldUpRecreateTask(android.content.Intent)">shouldUpRecreateTask(Intent)</a></code>.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>upIntent
          </th><td>An intent representing the target destination for up navigation</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>true if up navigation successfully reached the activity indicated by upIntent and
         upIntent was delivered to it. false if an instance of the indicated activity could
         not be found and this activity was simply finished normally.
</li></ul>
  </div>

    </div>
</div>


<a name="navigateUpToFromChild(android.app.Activity, android.content.Intent)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">navigateUpToFromChild</span>
      <span class="normal">(<a href="./Activity_files/Activity.htm">Activity</a> child, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> upIntent)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This is called when a child activity of this one calls its
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#navigateUpTo(android.content.Intent)">navigateUpTo(Intent)</a></code> method.  The default implementation simply calls
 navigateUpTo(upIntent) on this activity (the parent).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>child
          </th><td>The activity making the call.</td>
        </tr>
        <tr>
          <th>upIntent
          </th><td>An intent representing the target destination for up navigation</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>true if up navigation successfully reached the activity indicated by upIntent and
         upIntent was delivered to it. false if an instance of the indicated activity could
         not be found and this activity was simply finished normally.
</li></ul>
  </div>

    </div>
</div>


<a name="onActionModeFinished(android.view.ActionMode)"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onActionModeFinished</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a> mode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Notifies the activity that an action mode has finished.
 Activity subclasses overriding this method should call the superclass implementation.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>mode
          </th><td>The action mode that just finished.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onActionModeStarted(android.view.ActionMode)"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onActionModeStarted</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a> mode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Notifies the Activity that an action mode has been started.
 Activity subclasses overriding this method should call the superclass implementation.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>mode
          </th><td>The new action mode.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onAttachFragment(android.app.Fragment)"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onAttachFragment</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a> fragment)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when a Fragment is being attached to this activity, immediately
 after the call to its <code><a href="http://developer.android.com/reference/android/app/Fragment.html#onAttach(android.app.Activity)">Fragment.onAttach()</a></code>
 method and before <code><a href="http://developer.android.com/reference/android/app/Fragment.html#onCreate(android.os.Bundle)">Fragment.onCreate()</a></code>.
</p></div>

    </div>
</div>


<a name="onAttachedToWindow()"></a>

<div class="jd-details api apilevel-5"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onAttachedToWindow</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 5</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when the main window associated with the activity has been
 attached to the window manager.
 See <code><a href="http://developer.android.com/reference/android/view/View.html#onAttachedToWindow()">View.onAttachedToWindow()</a></code>
 for more information.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/view/View.html#onAttachedToWindow()">onAttachedToWindow()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onBackPressed()"></a>

<div class="jd-details api apilevel-5"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onBackPressed</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 5</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when the activity has detected the user's press of the back
 key.  The default implementation simply finishes the current activity,
 but you can override this to do whatever you want.
</p></div>

    </div>
</div>


<a name="onConfigurationChanged(android.content.res.Configuration)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onConfigurationChanged</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/res/Configuration.html">Configuration</a> newConfig)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called by the system when the device configuration changes while your
 activity is running.  Note that this will <em>only</em> be called if
 you have selected configurations you would like to handle with the
 <code><a href="http://developer.android.com/reference/android/R.attr.html#configChanges">configChanges</a></code> attribute in your manifest.  If
 any configuration change occurs that is not selected to be reported
 by that attribute, then instead of reporting it the system will stop
 and restart the activity (to have it launched with the new
 configuration).
 
 </p><p>At the time that this function has been called, your Resources
 object will have been updated to return resource values matching the
 new configuration.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>newConfig
          </th><td>The new device configuration.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onContentChanged()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onContentChanged</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This hook is called whenever the content view of the screen changes
 (due to a call to
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setContentView(android.view.View, android.view.ViewGroup.LayoutParams)">Window.setContentView</a></code> or
 <code><a href="http://developer.android.com/reference/android/view/Window.html#addContentView(android.view.View, android.view.ViewGroup.LayoutParams)">Window.addContentView</a></code>).
</p></div>

    </div>
</div>


<a name="onContextItemSelected(android.view.MenuItem)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onContextItemSelected</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/MenuItem.html">MenuItem</a> item)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This hook is called whenever an item in a context menu is selected. The
 default implementation simply returns false to have the normal processing
 happen (calling the item's Runnable or sending a message to its Handler
 as appropriate). You can use this method for any items for which you
 would like to do processing without those other facilities.
 </p><p>
 Use <code><a href="http://developer.android.com/reference/android/view/MenuItem.html#getMenuInfo()">getMenuInfo()</a></code> to get extra information set by the
 View that added this menu item.
 </p><p>
 Derived classes should call through to the base class for it to perform
 the default menu handling.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>item
          </th><td>The context menu item that was selected.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>boolean Return false to allow normal context menu processing to
         proceed, true to consume it here.
</li></ul>
  </div>

    </div>
</div>


<a name="onContextMenuClosed(android.view.Menu)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onContextMenuClosed</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This hook is called whenever the context menu is being closed (either by
 the user canceling the menu with the back/menu button, or when an item is
 selected).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>menu
          </th><td>The context menu that is being closed.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onCreateContextMenu(android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onCreateContextMenu</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/ContextMenu.html">ContextMenu</a> menu, <a href="http://developer.android.com/reference/android/view/View.html">View</a> v, <a href="http://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html">ContextMenu.ContextMenuInfo</a> menuInfo)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when a context menu for the <code>view</code> is about to be shown.
 Unlike <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateOptionsMenu(android.view.Menu)">onCreateOptionsMenu(Menu)</a></code>, this will be called every
 time the context menu is about to be shown and should be populated for
 the view (or item inside the view for <code><a href="http://developer.android.com/reference/android/widget/AdapterView.html">AdapterView</a></code> subclasses,
 this can be found in the <code>menuInfo</code>)).
 </p><p>
 Use <code><a href="http://developer.android.com/reference/android/app/Activity.html#onContextItemSelected(android.view.MenuItem)">onContextItemSelected(android.view.MenuItem)</a></code> to know when an
 item has been selected.
 </p><p>
 It is not safe to hold onto the context menu after this method returns.

</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>menu
          </th><td>The context menu that is being built</td>
        </tr>
        <tr>
          <th>v
          </th><td>The view for which the context menu is being built</td>
        </tr>
        <tr>
          <th>menuInfo
          </th><td>Extra information about the item for which the
            context menu should be shown. This information will vary
            depending on the class of v.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onCreateDescription()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a>
      </span>
      <span class="sympad">onCreateDescription</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Generate a new description for this activity.  This method is called
 before pausing the activity and can, if desired, return some textual
 description of its current state to be displayed to the user.
 
 </p><p>The default implementation returns null, which will cause you to
 inherit the description from the previous activity.  If all activities
 return null, generally the label of the top activity will be used as the
 description.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>A description of what the user is doing.  It should be short and
         sweet (only a few words).</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateThumbnail(android.graphics.Bitmap, android.graphics.Canvas)">onCreateThumbnail(Bitmap, Canvas)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onCreateNavigateUpTaskStack(android.app.TaskStackBuilder)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onCreateNavigateUpTaskStack</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/app/TaskStackBuilder.html">TaskStackBuilder</a> builder)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Define the synthetic task stack that will be generated during Up navigation from
 a different task.

 </p><p>The default implementation of this method adds the parent chain of this activity
 as specified in the manifest to the supplied <code><a href="http://developer.android.com/reference/android/app/TaskStackBuilder.html">TaskStackBuilder</a></code>. Applications
 may choose to override this method to construct the desired task stack in a different
 way.</p>

 <p>This method will be invoked by the default implementation of <code><a href="http://developer.android.com/reference/android/app/Activity.html#onNavigateUp()">onNavigateUp()</a></code>
 if <code><a href="http://developer.android.com/reference/android/app/Activity.html#shouldUpRecreateTask(android.content.Intent)">shouldUpRecreateTask(Intent)</a></code> returns true when supplied with the intent
 returned by <code><a href="http://developer.android.com/reference/android/app/Activity.html#getParentActivityIntent()">getParentActivityIntent()</a></code>.</p>

 <p>Applications that wish to supply extra Intent parameters to the parent stack defined
 by the manifest should override <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder)">onPrepareNavigateUpTaskStack(TaskStackBuilder)</a></code>.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>builder
          </th><td>An empty TaskStackBuilder - the application should add intents representing
                the desired task stack
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onCreateOptionsMenu(android.view.Menu)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onCreateOptionsMenu</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Initialize the contents of the Activity's standard options menu.  You
 should place your menu items in to <var>menu</var>.
 
 </p><p>This is only called once, the first time the options menu is
 displayed.  To update the menu every time it is displayed, see
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareOptionsMenu(android.view.Menu)">onPrepareOptionsMenu(Menu)</a></code>.
 
 </p><p>The default implementation populates the menu with standard system
 menu items.  These are placed in the <code><a href="http://developer.android.com/reference/android/view/Menu.html#CATEGORY_SYSTEM">CATEGORY_SYSTEM</a></code> group so that 
 they will be correctly ordered with application-defined menu items. 
 Deriving classes should always call through to the base implementation. 
 
 </p><p>You can safely hold on to <var>menu</var> (and any items created
 from it), making modifications to it as desired, until the next
 time onCreateOptionsMenu() is called.
 
 </p><p>When you add items to the menu, you can implement the Activity's
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onOptionsItemSelected(android.view.MenuItem)">onOptionsItemSelected(MenuItem)</a></code> method to handle them there.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>menu
          </th><td>The options menu in which you place your items.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>You must return true for the menu to be displayed;
         if you return false it will not be shown.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareOptionsMenu(android.view.Menu)">onPrepareOptionsMenu(Menu)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onOptionsItemSelected(android.view.MenuItem)">onOptionsItemSelected(MenuItem)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onCreatePanelMenu(int, android.view.Menu)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onCreatePanelMenu</span>
      <span class="normal">(int featureId, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Default implementation of
 <code><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onCreatePanelMenu(int, android.view.Menu)">onCreatePanelMenu(int, Menu)</a></code>
 for activities.  This calls through to the new
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateOptionsMenu(android.view.Menu)">onCreateOptionsMenu(Menu)</a></code> method for the
 <code><a href="http://developer.android.com/reference/android/view/Window.html#FEATURE_OPTIONS_PANEL">FEATURE_OPTIONS_PANEL</a></code> panel,
 so that subclasses of Activity don't need to deal with feature codes.
</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>featureId
          </th><td>The panel being created.</td>
        </tr>
        <tr>
          <th>menu
          </th><td>The menu inside the panel.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>boolean You must return true for the panel to be displayed;
         if you return false it will not be shown.
</li></ul>
  </div>

    </div>
</div>


<a name="onCreatePanelView(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/View.html">View</a>
      </span>
      <span class="sympad">onCreatePanelView</span>
      <span class="normal">(int featureId)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Default implementation of
 <code><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onCreatePanelView(int)">onCreatePanelView(int)</a></code>
 for activities. This
 simply returns null so that all panel sub-windows will have the default
 menu behavior.
</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>featureId
          </th><td>Which panel is being created.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>view The top-level view to place in the panel.</li></ul>
  </div>

    </div>
</div>


<a name="onCreateThumbnail(android.graphics.Bitmap, android.graphics.Canvas)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onCreateThumbnail</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/graphics/Bitmap.html">Bitmap</a> outBitmap, <a href="http://developer.android.com/reference/android/graphics/Canvas.html">Canvas</a> canvas)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Generate a new thumbnail for this activity.  This method is called before
 pausing the activity, and should draw into <var>outBitmap</var> the
 imagery for the desired thumbnail in the dimensions of that bitmap.  It
 can use the given <var>canvas</var>, which is configured to draw into the
 bitmap, for rendering if desired.
 
 </p><p>The default implementation returns fails and does not draw a thumbnail;
 this will result in the platform creating its own thumbnail if needed.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>outBitmap
          </th><td>The bitmap to contain the thumbnail.</td>
        </tr>
        <tr>
          <th>canvas
          </th><td>Can be used to render into the bitmap.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Return true if you have drawn into the bitmap; otherwise after
         you return it will be filled with a default thumbnail.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDescription()">onCreateDescription()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet)"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/View.html">View</a>
      </span>
      <span class="sympad">onCreateView</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/View.html">View</a> parent, <a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, <a href="http://developer.android.com/reference/android/content/Context.html">Context</a> context, <a href="http://developer.android.com/reference/android/util/AttributeSet.html">AttributeSet</a> attrs)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Standard implementation of
 <code><a href="http://developer.android.com/reference/android/view/LayoutInflater.Factory2.html#onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet)">onCreateView(View, String, Context, AttributeSet)</a></code>
 used when inflating with the LayoutInflater returned by <code><a href="http://developer.android.com/reference/android/app/Activity.html#getSystemService(java.lang.String)">getSystemService(String)</a></code>.
 This implementation handles <fragment> tags to embed fragments inside
 of the activity.</fragment></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>parent
          </th><td>The parent that the created view will be placed
 in; <em>note that this may be null</em>.</td>
        </tr>
        <tr>
          <th>name
          </th><td>Tag name to be inflated.</td>
        </tr>
        <tr>
          <th>context
          </th><td>The context the view is being created in.</td>
        </tr>
        <tr>
          <th>attrs
          </th><td>Inflation attributes as specified in XML file.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>View Newly created view. Return null for the default
         behavior.
</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/view/LayoutInflater.html#createView(java.lang.String, java.lang.String, android.util.AttributeSet)">createView(String, String, AttributeSet)</a></code></li><li><code><a href="http://developer.android.com/reference/android/view/Window.html#getLayoutInflater()">getLayoutInflater()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onCreateView(java.lang.String, android.content.Context, android.util.AttributeSet)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/View.html">View</a>
      </span>
      <span class="sympad">onCreateView</span>
      <span class="normal">(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> name, <a href="http://developer.android.com/reference/android/content/Context.html">Context</a> context, <a href="http://developer.android.com/reference/android/util/AttributeSet.html">AttributeSet</a> attrs)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Standard implementation of
 <code><a href="http://developer.android.com/reference/android/view/LayoutInflater.Factory.html#onCreateView(java.lang.String, android.content.Context, android.util.AttributeSet)">onCreateView(String, Context, AttributeSet)</a></code> used when
 inflating with the LayoutInflater returned by <code><a href="http://developer.android.com/reference/android/app/Activity.html#getSystemService(java.lang.String)">getSystemService(String)</a></code>.
 This implementation does nothing and is for
 pre-<code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB">HONEYCOMB</a></code> apps.  Newer apps
 should use <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet)">onCreateView(View, String, Context, AttributeSet)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>name
          </th><td>Tag name to be inflated.</td>
        </tr>
        <tr>
          <th>context
          </th><td>The context the view is being created in.</td>
        </tr>
        <tr>
          <th>attrs
          </th><td>Inflation attributes as specified in XML file.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>View Newly created view. Return null for the default
         behavior.
</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/view/LayoutInflater.html#createView(java.lang.String, java.lang.String, android.util.AttributeSet)">createView(String, String, AttributeSet)</a></code></li><li><code><a href="http://developer.android.com/reference/android/view/Window.html#getLayoutInflater()">getLayoutInflater()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onDetachedFromWindow()"></a>

<div class="jd-details api apilevel-5"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onDetachedFromWindow</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 5</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when the main window associated with the activity has been
 detached from the window manager.
 See <code><a href="http://developer.android.com/reference/android/view/View.html#onDetachedFromWindow()">View.onDetachedFromWindow()</a></code>
 for more information.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/view/View.html#onDetachedFromWindow()">onDetachedFromWindow()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onGenericMotionEvent(android.view.MotionEvent)"></a>

<div class="jd-details api apilevel-12"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onGenericMotionEvent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 12</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when a generic motion event was not handled by any of the
 views inside of the activity.
 </p><p>
 Generic motion events describe joystick movements, mouse hovers, track pad
 touches, scroll wheel movements and other input events.  The
 <code><a href="http://developer.android.com/reference/android/view/MotionEvent.html#getSource()">source</a></code> of the motion event specifies
 the class of input that was received.  Implementations of this method
 must examine the bits in the source before processing the event.
 The following code example shows how this is done.
 </p><p>
 Generic motion events with source class
 <code><a href="http://developer.android.com/reference/android/view/InputDevice.html#SOURCE_CLASS_POINTER">SOURCE_CLASS_POINTER</a></code>
 are delivered to the view under the pointer.  All other generic motion events are
 delivered to the focused view.
 </p><p>
 See <code><a href="http://developer.android.com/reference/android/view/View.html#onGenericMotionEvent(android.view.MotionEvent)">onGenericMotionEvent(MotionEvent)</a></code> for an example of how to
 handle this event.
 </p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>event
          </th><td>The generic motion event being processed.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Return true if you have consumed the event, false if you haven't.
 The default implementation always returns false.
</li></ul>
  </div>

    </div>
</div>


<a name="onKeyDown(int, android.view.KeyEvent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onKeyDown</span>
      <span class="normal">(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when a key was pressed down and not handled by any of the views
 inside of the activity. So, for example, key presses while the cursor 
 is inside a TextView will not trigger the event (unless it is a navigation
 to another object) because TextView handles its own key presses.
 
 </p><p>If the focused view didn't want this event, this method is called.

 </p><p>The default implementation takes care of <code><a href="http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACK">KEYCODE_BACK</a></code>
 by calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#onBackPressed()">onBackPressed()</a></code>, though the behavior varies based
 on the application compatibility mode: for
 <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#ECLAIR">ECLAIR</a></code> or later applications,
 it will set up the dispatch to call <code><a href="http://developer.android.com/reference/android/app/Activity.html#onKeyUp(int, android.view.KeyEvent)">onKeyUp(int, KeyEvent)</a></code> where the action
 will be performed; for earlier applications, it will perform the
 action immediately in on-down, as those versions of the platform
 behaved.
 
 </p><p>Other additional default key handling may be performed
 if configured with <code><a href="http://developer.android.com/reference/android/app/Activity.html#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>keyCode
          </th><td>The value in event.getKeyCode().</td>
        </tr>
        <tr>
          <th>event
          </th><td>Description of the key event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Return <code>true</code> to prevent this event from being propagated
 further, or <code>false</code> to indicate that you have not handled 
 this event and it should continue to be propagated.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onKeyUp(int, android.view.KeyEvent)">onKeyUp(int, KeyEvent)</a></code></li><li><code><a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onKeyLongPress(int, android.view.KeyEvent)"></a>

<div class="jd-details api apilevel-5"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onKeyLongPress</span>
      <span class="normal">(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 5</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Default implementation of <code><a href="http://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyLongPress(int, android.view.KeyEvent)">KeyEvent.Callback.onKeyLongPress()</a></code>: always returns false (doesn't handle
 the event).
</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>keyCode
          </th><td>The value in event.getKeyCode().</td>
        </tr>
        <tr>
          <th>event
          </th><td>Description of the key event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>If you handled the event, return true.  If you want to allow
         the event to be handled by the next receiver, return false.
</li></ul>
  </div>

    </div>
</div>


<a name="onKeyMultiple(int, int, android.view.KeyEvent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onKeyMultiple</span>
      <span class="normal">(int keyCode, int repeatCount, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Default implementation of <code><a href="http://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyMultiple(int, int, android.view.KeyEvent)">KeyEvent.Callback.onKeyMultiple()</a></code>: always returns false (doesn't handle
 the event).
</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>keyCode
          </th><td>The value in event.getKeyCode().</td>
        </tr>
        <tr>
          <th>repeatCount
          </th><td>Number of pairs as returned by event.getRepeatCount().</td>
        </tr>
        <tr>
          <th>event
          </th><td>Description of the key event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>If you handled the event, return true.  If you want to allow
         the event to be handled by the next receiver, return false.
</li></ul>
  </div>

    </div>
</div>


<a name="onKeyShortcut(int, android.view.KeyEvent)"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onKeyShortcut</span>
      <span class="normal">(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when a key shortcut event is not handled by any of the views in the Activity.
 Override this method to implement global key shortcuts for the Activity.
 Key shortcuts can also be implemented by setting the
 <code><a href="http://developer.android.com/reference/android/view/MenuItem.html#setShortcut(char, char)">shortcut</a></code> property of menu items.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>keyCode
          </th><td>The value in event.getKeyCode().</td>
        </tr>
        <tr>
          <th>event
          </th><td>Description of the key event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>True if the key shortcut was handled.
</li></ul>
  </div>

    </div>
</div>


<a name="onKeyUp(int, android.view.KeyEvent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onKeyUp</span>
      <span class="normal">(int keyCode, <a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when a key was released and not handled by any of the views
 inside of the activity. So, for example, key presses while the cursor 
 is inside a TextView will not trigger the event (unless it is a navigation
 to another object) because TextView handles its own key presses.
 
 </p><p>The default implementation handles KEYCODE_BACK to stop the activity
 and go back.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>keyCode
          </th><td>The value in event.getKeyCode().</td>
        </tr>
        <tr>
          <th>event
          </th><td>Description of the key event.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Return <code>true</code> to prevent this event from being propagated
 further, or <code>false</code> to indicate that you have not handled 
 this event and it should continue to be propagated.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onKeyDown(int, android.view.KeyEvent)">onKeyDown(int, KeyEvent)</a></code></li><li><code><a href="http://developer.android.com/reference/android/view/KeyEvent.html">KeyEvent</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onLowMemory()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onLowMemory</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This is called when the overall system is running low on memory, and
 would like actively running process to try to tighten their belt.  While
 the exact point at which this will be called is not defined, generally
 it will happen around the time all background process have been killed,
 that is before reaching the point of killing processes hosting
 service and foreground UI that we would like to avoid killing.
 
 </p><p>Applications that want to be nice can implement this method to release
 any caches or other unnecessary resources they may be holding on to.
 The system will perform a gc for you after returning from this method.
</p></div>

    </div>
</div>


<a name="onMenuItemSelected(int, android.view.MenuItem)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onMenuItemSelected</span>
      <span class="normal">(int featureId, <a href="http://developer.android.com/reference/android/view/MenuItem.html">MenuItem</a> item)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Default implementation of
 <code><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onMenuItemSelected(int, android.view.MenuItem)">onMenuItemSelected(int, MenuItem)</a></code>
 for activities.  This calls through to the new
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onOptionsItemSelected(android.view.MenuItem)">onOptionsItemSelected(MenuItem)</a></code> method for the
 <code><a href="http://developer.android.com/reference/android/view/Window.html#FEATURE_OPTIONS_PANEL">FEATURE_OPTIONS_PANEL</a></code>
 panel, so that subclasses of
 Activity don't need to deal with feature codes.
</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>featureId
          </th><td>The panel that the menu is in.</td>
        </tr>
        <tr>
          <th>item
          </th><td>The menu item that was selected.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>boolean Return true to finish processing of selection, or
         false to perform the normal menu handling (calling its
         Runnable or sending a Message to its target Handler).
</li></ul>
  </div>

    </div>
</div>


<a name="onMenuOpened(int, android.view.Menu)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onMenuOpened</span>
      <span class="normal">(int featureId, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when a panel's menu is opened by the user. This may also be
 called when the menu is changing from one type to another (for
 example, from the icon menu to the expanded menu).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>featureId
          </th><td>The panel that the menu is in.</td>
        </tr>
        <tr>
          <th>menu
          </th><td>The menu that is opened.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The default implementation returns true.
</li></ul>
  </div>

    </div>
</div>


<a name="onNavigateUp()"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onNavigateUp</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This method is called whenever the user chooses to navigate Up within your application's
 activity hierarchy from the action bar.

 </p><p>If the attribute <code><a href="http://developer.android.com/reference/android/R.attr.html#parentActivityName">parentActivityName</a></code>
 was specified in the manifest for this activity or an activity-alias to it,
 default Up navigation will be handled automatically. If any activity
 along the parent chain requires extra Intent arguments, the Activity subclass
 should override the method <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder)">onPrepareNavigateUpTaskStack(TaskStackBuilder)</a></code>
 to supply those arguments.</p>

 <p>See <a href="http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html">Tasks and Back Stack</a>
 from the developer guide and <a href="http://developer.android.com/design/patterns/navigation.html">Navigation</a>
 from the design guide for more information about navigating within your app.</p>

 <p>See the <code><a href="http://developer.android.com/reference/android/app/TaskStackBuilder.html">TaskStackBuilder</a></code> class and the Activity methods
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#getParentActivityIntent()">getParentActivityIntent()</a></code>, <code><a href="http://developer.android.com/reference/android/app/Activity.html#shouldUpRecreateTask(android.content.Intent)">shouldUpRecreateTask(Intent)</a></code>, and
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#navigateUpTo(android.content.Intent)">navigateUpTo(Intent)</a></code> for help implementing custom Up navigation.
 The AppNavigation sample application in the Android SDK is also available for reference.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>true if Up navigation completed successfully and this Activity was finished,
         false otherwise.
</li></ul>
  </div>

    </div>
</div>


<a name="onNavigateUpFromChild(android.app.Activity)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onNavigateUpFromChild</span>
      <span class="normal">(<a href="./Activity_files/Activity.htm">Activity</a> child)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This is called when a child activity of this one attempts to navigate up.
 The default implementation simply calls onNavigateUp() on this activity (the parent).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>child
          </th><td>The activity making the call.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onOptionsItemSelected(android.view.MenuItem)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onOptionsItemSelected</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/MenuItem.html">MenuItem</a> item)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This hook is called whenever an item in your options menu is selected.
 The default implementation simply returns false to have the normal
 processing happen (calling the item's Runnable or sending a message to
 its Handler as appropriate).  You can use this method for any items
 for which you would like to do processing without those other
 facilities.
 
 </p><p>Derived classes should call through to the base class for it to
 perform the default menu handling.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>item
          </th><td>The menu item that was selected.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>boolean Return false to allow normal menu processing to
         proceed, true to consume it here.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateOptionsMenu(android.view.Menu)">onCreateOptionsMenu(Menu)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onOptionsMenuClosed(android.view.Menu)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onOptionsMenuClosed</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This hook is called whenever the options menu is being closed (either by the user canceling
 the menu with the back/menu button, or when an item is selected).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>menu
          </th><td>The options menu as last shown or first initialized by
             onCreateOptionsMenu().
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onPanelClosed(int, android.view.Menu)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onPanelClosed</span>
      <span class="normal">(int featureId, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Default implementation of
 <code><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onPanelClosed(int, android.view.Menu)">onPanelClosed(int, Menu)</a></code> for
 activities. This calls through to <code><a href="http://developer.android.com/reference/android/app/Activity.html#onOptionsMenuClosed(android.view.Menu)">onOptionsMenuClosed(Menu)</a></code>
 method for the <code><a href="http://developer.android.com/reference/android/view/Window.html#FEATURE_OPTIONS_PANEL">FEATURE_OPTIONS_PANEL</a></code> panel,
 so that subclasses of Activity don't need to deal with feature codes.
 For context menus (<code><a href="http://developer.android.com/reference/android/view/Window.html#FEATURE_CONTEXT_MENU">FEATURE_CONTEXT_MENU</a></code>), the
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onContextMenuClosed(android.view.Menu)">onContextMenuClosed(Menu)</a></code> will be called.
</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>featureId
          </th><td>The panel that is being displayed.</td>
        </tr>
        <tr>
          <th>menu
          </th><td>If onCreatePanelView() returned null, this is the Menu
            being displayed in the panel.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onPrepareNavigateUpTaskStack</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/app/TaskStackBuilder.html">TaskStackBuilder</a> builder)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Prepare the synthetic task stack that will be generated during Up navigation
 from a different task.

 </p><p>This method receives the <code><a href="http://developer.android.com/reference/android/app/TaskStackBuilder.html">TaskStackBuilder</a></code> with the constructed series of
 Intents as generated by <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateNavigateUpTaskStack(android.app.TaskStackBuilder)">onCreateNavigateUpTaskStack(TaskStackBuilder)</a></code>.
 If any extra data should be added to these intents before launching the new task,
 the application should override this method and add that data here.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>builder
          </th><td>A TaskStackBuilder that has been populated with Intents by
                onCreateNavigateUpTaskStack.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onPrepareOptionsMenu(android.view.Menu)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onPrepareOptionsMenu</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Prepare the Screen's standard options menu to be displayed.  This is
 called right before the menu is shown, every time it is shown.  You can
 use this method to efficiently enable/disable items or otherwise
 dynamically modify the contents.
 
 </p><p>The default implementation updates the system menu items based on the
 activity's state.  Deriving classes should always call through to the
 base class implementation.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>menu
          </th><td>The options menu as last shown or first initialized by
             onCreateOptionsMenu().</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>You must return true for the menu to be displayed;
         if you return false it will not be shown.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateOptionsMenu(android.view.Menu)">onCreateOptionsMenu(Menu)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onPreparePanel(int, android.view.View, android.view.Menu)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onPreparePanel</span>
      <span class="normal">(int featureId, <a href="http://developer.android.com/reference/android/view/View.html">View</a> view, <a href="http://developer.android.com/reference/android/view/Menu.html">Menu</a> menu)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Default implementation of
 <code><a href="http://developer.android.com/reference/android/view/Window.Callback.html#onPreparePanel(int, android.view.View, android.view.Menu)">onPreparePanel(int, View, Menu)</a></code>
 for activities.  This
 calls through to the new <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareOptionsMenu(android.view.Menu)">onPrepareOptionsMenu(Menu)</a></code> method for the
 <code><a href="http://developer.android.com/reference/android/view/Window.html#FEATURE_OPTIONS_PANEL">FEATURE_OPTIONS_PANEL</a></code>
 panel, so that subclasses of
 Activity don't need to deal with feature codes.
</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>featureId
          </th><td>The panel that is being displayed.</td>
        </tr>
        <tr>
          <th>view
          </th><td>The View that was returned by onCreatePanelView().</td>
        </tr>
        <tr>
          <th>menu
          </th><td>If onCreatePanelView() returned null, this is the Menu
             being displayed in the panel.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>boolean You must return true for the panel to be displayed;
         if you return false it will not be shown.</li></ul>
  </div>

    </div>
</div>


<a name="onRetainNonConfigurationInstance()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/java/lang/Object.html">Object</a>
      </span>
      <span class="sympad">onRetainNonConfigurationInstance</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 13</strong>.<br> Use the new <code><a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a></code> API
 <code><a href="http://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean)">setRetainInstance(boolean)</a></code> instead; this is also
 available on older platforms through the Android compatibility package.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>Called by the system, as part of destroying an
 activity due to a configuration change, when it is known that a new
 instance will immediately be created for the new configuration.  You
 can return any object you like here, including the activity instance
 itself, which can later be retrieved by calling
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#getLastNonConfigurationInstance()">getLastNonConfigurationInstance()</a></code> in the new activity
 instance.
 
 <em>If you are targeting <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB">HONEYCOMB</a></code>
 or later, consider instead using a <code><a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a></code> with
 <code><a href="http://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean)">Fragment.setRetainInstance(boolean</a></code>.</em>

 </p><p>This function is called purely as an optimization, and you must
 not rely on it being called.  When it is called, a number of guarantees
 will be made to help optimize configuration switching:
 </p><ul>
 <li> The function will be called between <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code> and
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code>.
 </li><li> A new instance of the activity will <em>always</em> be immediately
 created after this one's <code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code> is called.  In particular,
 <em>no</em> messages will be dispatched during this time (when the returned
 object does not have an activity to be associated with).
 </li><li> The object you return here will <em>always</em> be available from
 the <code><a href="http://developer.android.com/reference/android/app/Activity.html#getLastNonConfigurationInstance()">getLastNonConfigurationInstance()</a></code> method of the following
 activity instance as described there.
 </li></ul>
 
 <p>These guarantees are designed so that an activity can use this API
 to propagate extensive state from the old to new activity instance, from
 loaded bitmaps, to network connections, to evenly actively running
 threads.  Note that you should <em>not</em> propagate any data that
 may change based on the configuration, including any data loaded from
 resources such as strings, layouts, or drawables.
 
 </p><p>The guarantee of no message handling during the switch to the next
 activity simplifies use with active objects.  For example if your retained
 state is an <code><a href="http://developer.android.com/reference/android/os/AsyncTask.html">AsyncTask</a></code> you are guaranteed that its
 call back functions (like <code><a href="http://developer.android.com/reference/android/os/AsyncTask.html#onPostExecute(Result)">onPostExecute(Result)</a></code>) will
 not be called from the call here until you execute the next instance's
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code>.  (Note however that there is of course no such
 guarantee for <code><a href="http://developer.android.com/reference/android/os/AsyncTask.html#doInBackground(Params...)">doInBackground(Params...)</a></code> since that is
 running in a separate thread.)</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Return any Object holding the desired state to propagate to the
 next activity instance.</li></ul>
  </div>

    </div>
</div>


<a name="onSearchRequested()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onSearchRequested</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This hook is called when the user signals the desire to start a search.
 
 </p><p>You can use this function as a simple way to launch the search UI, in response to a
 menu item, search button, or other widgets within your activity. Unless overidden, 
 calling this function is the same as calling
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startSearch(java.lang.String, boolean, android.os.Bundle, boolean)">startSearch(null, false, null, false)</a></code>, which launches
 search for the current activity as specified in its manifest, see <code><a href="http://developer.android.com/reference/android/app/SearchManager.html">SearchManager</a></code>.
 
 </p><p>You can override this function to force global search, e.g. in response to a dedicated
 search key, or to block search entirely (by simply returning false).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns <code>true</code> if search launched, and <code>false</code> if activity blocks it.
         The default implementation always returns <code>true</code>.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/SearchManager.html">SearchManager</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onTouchEvent(android.view.MotionEvent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onTouchEvent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when a touch screen event was not handled by any of the views
 under it.  This is most useful to process touch events that happen
 outside of your window bounds, where there is no view to receive it.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>event
          </th><td>The touch screen event being processed.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Return true if you have consumed the event, false if you haven't.
 The default implementation always returns false.
</li></ul>
  </div>

    </div>
</div>


<a name="onTrackballEvent(android.view.MotionEvent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">onTrackballEvent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/MotionEvent.html">MotionEvent</a> event)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when the trackball was moved and not handled by any of the
 views inside of the activity.  So, for example, if the trackball moves
 while focus is on a button, you will receive a call here because
 buttons do not normally do anything with trackball events.  The call
 here happens <em>before</em> trackball movements are converted to
 DPAD key events, which then get sent back to the view hierarchy, and
 will be processed at the point for things like focus navigation.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>event
          </th><td>The trackball event being processed.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Return true if you have consumed the event, false if you haven't.
 The default implementation always returns false.
</li></ul>
  </div>

    </div>
</div>


<a name="onTrimMemory(int)"></a>

<div class="jd-details api apilevel-14"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onTrimMemory</span>
      <span class="normal">(int level)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 14</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when the operating system has determined that it is a good
 time for a process to trim unneeded memory from its process.  This will
 happen for example when it goes in the background and there is not enough
 memory to keep as many background processes running as desired.  You
 should never compare to exact values of the level, since new intermediate
 values may be added -- you will typically want to compare if the value
 is greater or equal to a level you are interested in.

 </p><p>To retrieve the processes current trim level at any point, you can
 use <code><a href="http://developer.android.com/reference/android/app/ActivityManager.html#getMyMemoryState(android.app.ActivityManager.RunningAppProcessInfo)">ActivityManager.getMyMemoryState(RunningAppProcessInfo)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>level
          </th><td>The context of the trim, giving a hint of the amount of
 trimming the application may like to perform.  May be
 <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_COMPLETE">TRIM_MEMORY_COMPLETE</a></code>, <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_MODERATE">TRIM_MEMORY_MODERATE</a></code>,
 <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_BACKGROUND">TRIM_MEMORY_BACKGROUND</a></code>, <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_UI_HIDDEN">TRIM_MEMORY_UI_HIDDEN</a></code>,
 <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_CRITICAL">TRIM_MEMORY_RUNNING_CRITICAL</a></code>, <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_LOW">TRIM_MEMORY_RUNNING_LOW</a></code>,
 or <code><a href="http://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_MODERATE">TRIM_MEMORY_RUNNING_MODERATE</a></code>.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onUserInteraction()"></a>

<div class="jd-details api apilevel-3"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onUserInteraction</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 3</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called whenever a key, touch, or trackball event is dispatched to the
 activity.  Implement this method if you wish to know that the user has
 interacted with the device in some way while your activity is running.
 This callback and <code><a href="http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()">onUserLeaveHint()</a></code> are intended to help
 activities manage status bar notifications intelligently; specifically,
 for helping activities determine the proper time to cancel a notfication.
 
 </p><p>All calls to your activity's <code><a href="http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()">onUserLeaveHint()</a></code> callback will
 be accompanied by calls to <code><a href="http://developer.android.com/reference/android/app/Activity.html#onUserInteraction()">onUserInteraction()</a></code>.  This
 ensures that your activity will be told of relevant user activity such
 as pulling down the notification pane and touching an item there.
 
 </p><p>Note that this callback will be invoked for the touch down action
 that begins a touch gesture, but may not be invoked for the touch-moved
 and touch-up actions that follow.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()">onUserLeaveHint()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onWindowAttributesChanged(android.view.WindowManager.LayoutParams)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onWindowAttributesChanged</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html">WindowManager.LayoutParams</a> params)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This is called whenever the current window attributes change.

</p></div>

    </div>
</div>


<a name="onWindowFocusChanged(boolean)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">onWindowFocusChanged</span>
      <span class="normal">(boolean hasFocus)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when the current <code><a href="http://developer.android.com/reference/android/view/Window.html">Window</a></code> of the activity gains or loses
 focus.  This is the best indicator of whether this activity is visible
 to the user.  The default implementation clears the key tracking
 state, so should always be called.
 
 </p><p>Note that this provides information about global focus state, which
 is managed independently of activity lifecycles.  As such, while focus
 changes will generally have some relation to lifecycle changes (an
 activity that is stopped will not generally get window focus), you
 should not rely on any particular order between the callbacks here and
 those in the other lifecycle methods such as <code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code>.
 
 </p><p>As a general rule, however, a resumed activity will have window
 focus...  unless it has displayed other dialogs or popups that take
 input focus, in which case the activity itself will not have focus
 when the other windows have it.  Likewise, the system may display
 system-level windows (such as the status bar notification panel or
 a system alert) which will temporarily take window input focus without
 pausing the foreground activity.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>hasFocus
          </th><td>Whether the window of this activity has focus.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#hasWindowFocus()">hasWindowFocus()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code></li><li><code><a href="http://developer.android.com/reference/android/view/View.html#onWindowFocusChanged(boolean)">onWindowFocusChanged(boolean)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onWindowStartingActionMode(android.view.ActionMode.Callback)"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a>
      </span>
      <span class="sympad">onWindowStartingActionMode</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/ActionMode.Callback.html">ActionMode.Callback</a> callback)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Give the Activity a chance to control the UI for an action mode requested
 by the system.

 </p><p>Note: If you are looking for a notification callback that an action mode
 has been started for this activity, see <code><a href="http://developer.android.com/reference/android/app/Activity.html#onActionModeStarted(android.view.ActionMode)">onActionModeStarted(ActionMode)</a></code>.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>callback
          </th><td>The callback that should control the new action mode</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The new action mode, or <code>null</code> if the activity does not want to
         provide special handling for this action mode. (It will be handled by the system.)
</li></ul>
  </div>

    </div>
</div>


<a name="openContextMenu(android.view.View)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">openContextMenu</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Programmatically opens the context menu for a particular <code>view</code>.
 The <code>view</code> should have been added via
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#registerForContextMenu(android.view.View)">registerForContextMenu(View)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>view
          </th><td>The view to show the context menu for.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="openOptionsMenu()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">openOptionsMenu</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Programmatically opens the options menu. If the options menu is already
 open, this method does nothing.
</p></div>

    </div>
</div>


<a name="overridePendingTransition(int, int)"></a>

<div class="jd-details api apilevel-5"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">overridePendingTransition</span>
      <span class="normal">(int enterAnim, int exitAnim)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 5</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Call immediately after one of the flavors of <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code>
 or <code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code> to specify an explicit transition animation to
 perform next.

 </p><p>As of <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#JELLY_BEAN">JELLY_BEAN</a></code> an alternative
 to using this with starting activities is to supply the desired animation
 information through a <code><a href="http://developer.android.com/reference/android/app/ActivityOptions.html">ActivityOptions</a></code> bundle to
 {@link #startActivity(Intent, Bundle) or a related function.  This allows
 you to specify a custom animation even when starting an activity from
 outside the context of the current top activity.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>enterAnim
          </th><td>A resource ID of the animation resource to use for
 the incoming activity.  Use 0 for no animation.</td>
        </tr>
        <tr>
          <th>exitAnim
          </th><td>A resource ID of the animation resource to use for
 the outgoing activity.  Use 0 for no animation.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="recreate()"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">recreate</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Cause this Activity to be recreated with a new instance.  This results
 in essentially the same flow as when the Activity is created due to
 a configuration change -- the current instance will go through its
 lifecycle to <code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code> and a new instance then created after it.
</p></div>

    </div>
</div>


<a name="registerForContextMenu(android.view.View)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">registerForContextMenu</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Registers a context menu to be shown for the given view (multiple views
 can show the context menu). This method will set the
 <code><a href="http://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html">View.OnCreateContextMenuListener</a></code> on the view to this activity, so
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateContextMenu(android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo)">onCreateContextMenu(ContextMenu, View, ContextMenuInfo)</a></code> will be
 called when it is time to show the context menu.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>view
          </th><td>The view that should show a context menu.
</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#unregisterForContextMenu(android.view.View)">unregisterForContextMenu(View)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="removeDialog(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">removeDialog</span>
      <span class="normal">(int id)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 13</strong>.<br> Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>Removes any internal references to a dialog managed by this Activity.
 If the dialog is showing, it will dismiss it as part of the clean up.

 </p><p>This can be useful if you know that you will never show a dialog again and
 want to avoid the overhead of saving and restoring it in the future.

 </p><p>As of <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#GINGERBREAD">GINGERBREAD</a></code>, this function
 will not throw an exception if you try to remove an ID that does not
 currently have an associated dialog.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>id
          </th><td>The id of the managed dialog.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int, android.os.Bundle)">onCreateDialog(int, Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog, android.os.Bundle)">onPrepareDialog(int, Dialog, Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int)">showDialog(int)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#dismissDialog(int)">dismissDialog(int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="requestWindowFeature(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        boolean
      </span>
      <span class="sympad">requestWindowFeature</span>
      <span class="normal">(int featureId)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Enable extended window features.  This is a convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#requestFeature(int)">getWindow().requestFeature()</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>featureId
          </th><td>The desired feature as defined in
                  <code><a href="http://developer.android.com/reference/android/view/Window.html">Window</a></code>.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns true if the requested feature is supported and now
         enabled.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/view/Window.html#requestFeature(int)">requestFeature(int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="runOnUiThread(java.lang.Runnable)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">runOnUiThread</span>
      <span class="normal">(<a href="http://developer.android.com/reference/java/lang/Runnable.html">Runnable</a> action)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Runs the specified action on the UI thread. If the current thread is the UI
 thread, then the action is executed immediately. If the current thread is
 not the UI thread, the action is posted to the event queue of the UI thread.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>action
          </th><td>the action to run on the UI thread
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="setContentView(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setContentView</span>
      <span class="normal">(int layoutResID)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Set the activity content from a layout resource.  The resource will be
 inflated, adding all top-level views to the activity.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>layoutResID
          </th><td>Resource ID to be inflated.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(android.view.View)">setContentView(android.view.View)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(android.view.View, android.view.ViewGroup.LayoutParams)">setContentView(android.view.View, android.view.ViewGroup.LayoutParams)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="setContentView(android.view.View)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setContentView</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Set the activity content to an explicit view.  This view is placed
 directly into the activity's view hierarchy.  It can itself be a complex
 view hierarchy.  When calling this method, the layout parameters of the
 specified view are ignored.  Both the width and the height of the view are
 set by default to <code><a href="http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT">MATCH_PARENT</a></code>. To use
 your own layout parameters, invoke
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(android.view.View, android.view.ViewGroup.LayoutParams)">setContentView(android.view.View, android.view.ViewGroup.LayoutParams)</a></code>
 instead.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>view
          </th><td>The desired content to display.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(int)">setContentView(int)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(android.view.View, android.view.ViewGroup.LayoutParams)">setContentView(android.view.View, android.view.ViewGroup.LayoutParams)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="setContentView(android.view.View, android.view.ViewGroup.LayoutParams)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setContentView</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view, <a href="http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html">ViewGroup.LayoutParams</a> params)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Set the activity content to an explicit view.  This view is placed
 directly into the activity's view hierarchy.  It can itself be a complex
 view hierarchy.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>view
          </th><td>The desired content to display.</td>
        </tr>
        <tr>
          <th>params
          </th><td>Layout parameters for the view.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(android.view.View)">setContentView(android.view.View)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(int)">setContentView(int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="setDefaultKeyMode(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setDefaultKeyMode</span>
      <span class="normal">(int mode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Select the default key handling for this activity.  This controls what
 will happen to key events that are not otherwise handled.  The default
 mode (<code><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_DISABLE">DEFAULT_KEYS_DISABLE</a></code>) will simply drop them on the
 floor. Other modes allow you to launch the dialer
 (<code><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_DIALER">DEFAULT_KEYS_DIALER</a></code>), execute a shortcut in your options
 menu without requiring the menu key be held down
 (<code><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SHORTCUT">DEFAULT_KEYS_SHORTCUT</a></code>), or launch a search (<code><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SEARCH_LOCAL">DEFAULT_KEYS_SEARCH_LOCAL</a></code> 
 and <code><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SEARCH_GLOBAL">DEFAULT_KEYS_SEARCH_GLOBAL</a></code>).
 
 </p><p>Note that the mode selected here does not impact the default
 handling of system keys, such as the "back" and "menu" keys, and your
 activity and its views always get a first chance to receive and handle
 all application keys.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>mode
          </th><td>The desired default key mode constant.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_DISABLE">DEFAULT_KEYS_DISABLE</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_DIALER">DEFAULT_KEYS_DIALER</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SHORTCUT">DEFAULT_KEYS_SHORTCUT</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SEARCH_LOCAL">DEFAULT_KEYS_SEARCH_LOCAL</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#DEFAULT_KEYS_SEARCH_GLOBAL">DEFAULT_KEYS_SEARCH_GLOBAL</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onKeyDown(int, android.view.KeyEvent)">onKeyDown(int, KeyEvent)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="setFeatureDrawable(int, android.graphics.drawable.Drawable)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setFeatureDrawable</span>
      <span class="normal">(int featureId, <a href="http://developer.android.com/reference/android/graphics/drawable/Drawable.html">Drawable</a> drawable)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setFeatureDrawable(int, android.graphics.drawable.Drawable)">setFeatureDrawable(int, Drawable)</a></code>.
</p></div>

    </div>
</div>


<a name="setFeatureDrawableAlpha(int, int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setFeatureDrawableAlpha</span>
      <span class="normal">(int featureId, int alpha)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setFeatureDrawableAlpha(int, int)">setFeatureDrawableAlpha(int, int)</a></code>.
</p></div>

    </div>
</div>


<a name="setFeatureDrawableResource(int, int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setFeatureDrawableResource</span>
      <span class="normal">(int featureId, int resId)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setFeatureDrawableResource(int, int)">setFeatureDrawableResource(int, int)</a></code>.
</p></div>

    </div>
</div>


<a name="setFeatureDrawableUri(int, android.net.Uri)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setFeatureDrawableUri</span>
      <span class="normal">(int featureId, <a href="http://developer.android.com/reference/android/net/Uri.html">Uri</a> uri)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Convenience for calling
 <code><a href="http://developer.android.com/reference/android/view/Window.html#setFeatureDrawableUri(int, android.net.Uri)">setFeatureDrawableUri(int, Uri)</a></code>.
</p></div>

    </div>
</div>


<a name="setFinishOnTouchOutside(boolean)"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setFinishOnTouchOutside</span>
      <span class="normal">(boolean finish)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets whether this activity is finished when touched outside its window's
 bounds.
</p></div>

    </div>
</div>


<a name="setIntent(android.content.Intent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setIntent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> newIntent)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Change the intent returned by <code><a href="http://developer.android.com/reference/android/app/Activity.html#getIntent()">getIntent()</a></code>.  This holds a 
 reference to the given intent; it does not copy it.  Often used in 
 conjunction with <code><a href="http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent)">onNewIntent(Intent)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>newIntent
          </th><td>The new Intent object to return from getIntent</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#getIntent()">getIntent()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent)">onNewIntent(Intent)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="setProgress(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setProgress</span>
      <span class="normal">(int progress)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the progress for the progress bars in the title.
 </p><p>
 In order for the progress bar to be shown, the feature must be requested
 via <code><a href="http://developer.android.com/reference/android/app/Activity.html#requestWindowFeature(int)">requestWindowFeature(int)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>progress
          </th><td>The progress for the progress bar. Valid ranges are from
            0 to 10000 (both inclusive). If 10000 is given, the progress
            bar will be completely filled and will fade out.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="setProgressBarIndeterminate(boolean)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setProgressBarIndeterminate</span>
      <span class="normal">(boolean indeterminate)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets whether the horizontal progress bar in the title should be indeterminate (the circular
 is always indeterminate).
 </p><p>
 In order for the progress bar to be shown, the feature must be requested
 via <code><a href="http://developer.android.com/reference/android/app/Activity.html#requestWindowFeature(int)">requestWindowFeature(int)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>indeterminate
          </th><td>Whether the horizontal progress bar should be indeterminate.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="setProgressBarIndeterminateVisibility(boolean)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setProgressBarIndeterminateVisibility</span>
      <span class="normal">(boolean visible)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the visibility of the indeterminate progress bar in the title.
 </p><p>
 In order for the progress bar to be shown, the feature must be requested
 via <code><a href="http://developer.android.com/reference/android/app/Activity.html#requestWindowFeature(int)">requestWindowFeature(int)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>visible
          </th><td>Whether to show the progress bars in the title.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="setProgressBarVisibility(boolean)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setProgressBarVisibility</span>
      <span class="normal">(boolean visible)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the visibility of the progress bar in the title.
 </p><p>
 In order for the progress bar to be shown, the feature must be requested
 via <code><a href="http://developer.android.com/reference/android/app/Activity.html#requestWindowFeature(int)">requestWindowFeature(int)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>visible
          </th><td>Whether to show the progress bars in the title.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="setRequestedOrientation(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setRequestedOrientation</span>
      <span class="normal">(int requestedOrientation)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Change the desired orientation of this activity.  If the activity
 is currently in the foreground or otherwise impacting the screen
 orientation, the screen will immediately be changed (possibly causing
 the activity to be restarted). Otherwise, this will be used the next
 time the activity is visible.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>requestedOrientation
          </th><td>An orientation constant as used in
 <code><a href="http://developer.android.com/reference/android/content/pm/ActivityInfo.html#screenOrientation">ActivityInfo.screenOrientation</a></code>.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="setResult(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setResult</span>
      <span class="normal">(int resultCode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Call this to set the result that your activity will return to its
 caller.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>resultCode
          </th><td>The result code to propagate back to the originating
                   activity, often RESULT_CANCELED or RESULT_OK</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED">RESULT_CANCELED</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#RESULT_OK">RESULT_OK</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#RESULT_FIRST_USER">RESULT_FIRST_USER</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setResult(int, android.content.Intent)">setResult(int, Intent)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="setResult(int, android.content.Intent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setResult</span>
      <span class="normal">(int resultCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> data)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Call this to set the result that your activity will return to its
 caller.

 </p><p>As of <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#GINGERBREAD">GINGERBREAD</a></code>, the Intent
 you supply here can have <code><a href="http://developer.android.com/reference/android/content/Intent.html#FLAG_GRANT_READ_URI_PERMISSION">Intent.FLAG_GRANT_READ_URI_PERMISSION</a></code> and/or <code><a href="http://developer.android.com/reference/android/content/Intent.html#FLAG_GRANT_WRITE_URI_PERMISSION">Intent.FLAG_GRANT_WRITE_URI_PERMISSION</a></code> set.  This will grant the
 Activity receiving the result access to the specific URIs in the Intent.
 Access will remain until the Activity has finished (it will remain across the hosting
 process being killed and other temporary destruction) and will be added
 to any existing set of URI permissions it already holds.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>resultCode
          </th><td>The result code to propagate back to the originating
                   activity, often RESULT_CANCELED or RESULT_OK</td>
        </tr>
        <tr>
          <th>data
          </th><td>The data to propagate back to the originating activity.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED">RESULT_CANCELED</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#RESULT_OK">RESULT_OK</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#RESULT_FIRST_USER">RESULT_FIRST_USER</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setResult(int)">setResult(int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="setSecondaryProgress(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setSecondaryProgress</span>
      <span class="normal">(int secondaryProgress)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the secondary progress for the progress bar in the title. This
 progress is drawn between the primary progress (set via
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#setProgress(int)">setProgress(int)</a></code> and the background. It can be ideal for media
 scenarios such as showing the buffering progress while the default
 progress shows the play progress.
 </p><p>
 In order for the progress bar to be shown, the feature must be requested
 via <code><a href="http://developer.android.com/reference/android/app/Activity.html#requestWindowFeature(int)">requestWindowFeature(int)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>secondaryProgress
          </th><td>The secondary progress for the progress bar. Valid ranges are from
            0 to 10000 (both inclusive).
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="setTitle(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setTitle</span>
      <span class="normal">(int titleId)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Change the title associated with this activity.  If this is a
 top-level activity, the title for its window will change.  If it
 is an embedded activity, the parent can do whatever it wants
 with it.
</p></div>

    </div>
</div>


<a name="setTitle(java.lang.CharSequence)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setTitle</span>
      <span class="normal">(<a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a> title)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Change the title associated with this activity.  If this is a
 top-level activity, the title for its window will change.  If it
 is an embedded activity, the parent can do whatever it wants
 with it.
</p></div>

    </div>
</div>


<a name="setTitleColor(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setTitleColor</span>
      <span class="normal">(int textColor)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a name="setVisible(boolean)"></a>

<div class="jd-details api apilevel-3"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setVisible</span>
      <span class="normal">(boolean visible)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 3</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Control whether this activity's main window is visible.  This is intended
 only for the special case of an activity that is not going to show a
 UI itself, but can't just finish prior to onResume() because it needs
 to wait for a service binding or such.  Setting this to false allows
 you to prevent your UI from being shown during that time.
 
 </p><p>The default value for this is taken from the
 <code><a href="http://developer.android.com/reference/android/R.attr.html#windowNoDisplay">windowNoDisplay</a></code> attribute of the activity's theme.
</p></div>

    </div>
</div>


<a name="setVolumeControlStream(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">setVolumeControlStream</span>
      <span class="normal">(int streamType)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Suggests an audio stream whose volume should be changed by the hardware
 volume controls.
 </p><p>
 The suggested audio stream will be tied to the window of this Activity.
 If the Activity is switched, the stream set here is no longer the
 suggested stream. The client does not need to save and restore the old
 suggested stream value in onPause and onResume.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>streamType
          </th><td>The type of the audio stream whose volume should be
        changed by the hardware volume controls. It is not guaranteed that
        the hardware volume controls will always change this stream's
        volume (for example, if a call is in progress, its stream's volume
        may be changed instead). To reset back to the default, use
        <code><a href="http://developer.android.com/reference/android/media/AudioManager.html#USE_DEFAULT_STREAM_TYPE">USE_DEFAULT_STREAM_TYPE</a></code>.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="shouldUpRecreateTask(android.content.Intent)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">shouldUpRecreateTask</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> targetIntent)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns true if the app should recreate the task when navigating 'up' from this activity
 by using targetIntent.

 </p><p>If this method returns false the app can trivially call
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#navigateUpTo(android.content.Intent)">navigateUpTo(Intent)</a></code> using the same parameters to correctly perform
 up navigation. If this method returns false, the app should synthesize a new task stack
 by using <code><a href="http://developer.android.com/reference/android/app/TaskStackBuilder.html">TaskStackBuilder</a></code> or another similar mechanism to perform up navigation.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>targetIntent
          </th><td>An intent representing the target destination for up navigation</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>true if navigating up should recreate a new task stack, false if the same task
         should be used for the destination
</li></ul>
  </div>

    </div>
</div>


<a name="showDialog(int, android.os.Bundle)"></a>

<div class="jd-details api apilevel-8"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        boolean
      </span>
      <span class="sympad">showDialog</span>
      <span class="normal">(int id, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> args)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 8</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 13</strong>.<br> Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>Show a dialog managed by this activity.  A call to <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int, android.os.Bundle)">onCreateDialog(int, Bundle)</a></code>
 will be made with the same id the first time this is called for a given
 id.  From thereafter, the dialog will be automatically saved and restored.

 <em>If you are targeting <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB">HONEYCOMB</a></code>
 or later, consider instead using a <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> instead.</em>

 </p><p>Each time a dialog is shown, <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog, android.os.Bundle)">onPrepareDialog(int, Dialog, Bundle)</a></code> will
 be made to provide an opportunity to do any timely preparation.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>id
          </th><td>The id of the managed dialog.</td>
        </tr>
        <tr>
          <th>args
          </th><td>Arguments to pass through to the dialog.  These will be saved
 and restored for you.  Note that if the dialog is already created,
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int, android.os.Bundle)">onCreateDialog(int, Bundle)</a></code> will not be called with the new
 arguments but <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog, android.os.Bundle)">onPrepareDialog(int, Dialog, Bundle)</a></code> will be.
 If you need to rebuild the dialog, call <code><a href="http://developer.android.com/reference/android/app/Activity.html#removeDialog(int)">removeDialog(int)</a></code> first.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns true if the Dialog was created; false is returned if
 it is not created because <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int, android.os.Bundle)">onCreateDialog(int, Bundle)</a></code> returns false.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Dialog.html">Dialog</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int, android.os.Bundle)">onCreateDialog(int, Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog, android.os.Bundle)">onPrepareDialog(int, Dialog, Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#dismissDialog(int)">dismissDialog(int)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#removeDialog(int)">removeDialog(int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="showDialog(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
        final 
         
         
        void
      </span>
      <span class="sympad">showDialog</span>
      <span class="normal">(int id)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 13</strong>.<br> Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>Simple version of <code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int, android.os.Bundle)">showDialog(int, Bundle)</a></code> that does not
 take any arguments.  Simply calls <code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int, android.os.Bundle)">showDialog(int, Bundle)</a></code>
 with null arguments.</p></div>

    </div>
</div>


<a name="startActionMode(android.view.ActionMode.Callback)"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a>
      </span>
      <span class="sympad">startActionMode</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/ActionMode.Callback.html">ActionMode.Callback</a> callback)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Start an action mode.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>callback
          </th><td>Callback that will manage lifecycle events for this context mode</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The ContextMode that was started, or null if it was canceled</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/view/ActionMode.html">ActionMode</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivities(android.content.Intent[], android.os.Bundle)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startActivities</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent[]</a> intents, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Launch a new activity.  You will not receive any information about when
 the activity exits.  This implementation overrides the base version,
 providing information about
 the activity performing the launch.  Because of this additional
 information, the <code><a href="http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_TASK">FLAG_ACTIVITY_NEW_TASK</a></code> launch flag is not
 required; if not specified, the new activity will be added to the
 task of the caller.

 </p><p>This method throws <code><a href="http://developer.android.com/reference/android/content/ActivityNotFoundException.html">ActivityNotFoundException</a></code>
 if there was no Activity found to run the given Intent.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intents
          </th><td>The intents to start.</td>
        </tr>
        <tr>
          <th>options
          </th><td>Additional options for how the Activity should be started.
 See <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">Context.startActivity(Intent, Bundle)</a></code> for more details.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th>
            </th><td>android.content.ActivityNotFoundException</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/">ERROR(#startActivities(Intent[])}/{@link #startActivities(Intent[])})</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivities(android.content.Intent[])"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startActivities</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent[]</a> intents)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Same as <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivities(android.content.Intent[], android.os.Bundle)">startActivities(Intent[], Bundle)</a></code> with no options
 specified.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intents
          </th><td>The intents to start.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th>
            </th><td>android.content.ActivityNotFoundException</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/">ERROR(#startActivities(Intent[], Bundle)}/{@link #startActivities(Intent[], Bundle)})</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivity(android.content.Intent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startActivity</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Same as <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent, Bundle)</a></code> with no options
 specified.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The intent to start.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th>
            </th><td>android.content.ActivityNotFoundException</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/">ERROR(#startActivity(Intent, Bundle)}/{@link #startActivity(Intent, Bundle)})</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivity(android.content.Intent, android.os.Bundle)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startActivity</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Launch a new activity.  You will not receive any information about when
 the activity exits.  This implementation overrides the base version,
 providing information about
 the activity performing the launch.  Because of this additional
 information, the <code><a href="http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_TASK">FLAG_ACTIVITY_NEW_TASK</a></code> launch flag is not
 required; if not specified, the new activity will be added to the
 task of the caller.
 
 </p><p>This method throws <code><a href="http://developer.android.com/reference/android/content/ActivityNotFoundException.html">ActivityNotFoundException</a></code>
 if there was no Activity found to run the given Intent.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The intent to start.</td>
        </tr>
        <tr>
          <th>options
          </th><td>Additional options for how the Activity should be started.
 See <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">Context.startActivity(Intent, Bundle)</a></code> for more details.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th>
            </th><td>android.content.ActivityNotFoundException</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/">ERROR(#startActivity(Intent)}/{@link #startActivity(Intent)})</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivityForResult(android.content.Intent, int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startActivityForResult</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int, android.os.Bundle)">startActivityForResult(Intent, int, Bundle)</a></code>
 with no options.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The intent to start.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>If &gt;= 0, this code will be returned in
                    onActivityResult() when the activity exits.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th>
            </th><td>android.content.ActivityNotFoundException</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivityForResult(android.content.Intent, int, android.os.Bundle)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startActivityForResult</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Launch an activity for which you would like a result when it finished.
 When this activity exits, your
 onActivityResult() method will be called with the given requestCode. 
 Using a negative requestCode is the same as calling 
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code> (the activity is not launched as a sub-activity).

 </p><p>Note that this method should only be used with Intent protocols
 that are defined to return a result.  In other protocols (such as
 <code><a href="http://developer.android.com/reference/android/content/Intent.html#ACTION_MAIN">ACTION_MAIN</a></code> or <code><a href="http://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW">ACTION_VIEW</a></code>), you may
 not get the result when you expect.  For example, if the activity you
 are launching uses the singleTask launch mode, it will not run in your
 task and thus you will immediately receive a cancel result.

 </p><p>As a special case, if you call startActivityForResult() with a requestCode 
 &gt;= 0 during the initial onCreate(Bundle savedInstanceState)/onResume() of your
 activity, then your window will not be displayed until a result is 
 returned back from the started activity.  This is to avoid visible 
 flickering when redirecting to another activity. 

 </p><p>This method throws <code><a href="http://developer.android.com/reference/android/content/ActivityNotFoundException.html">ActivityNotFoundException</a></code>
 if there was no Activity found to run the given Intent.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The intent to start.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>If &gt;= 0, this code will be returned in
                    onActivityResult() when the activity exits.</td>
        </tr>
        <tr>
          <th>options
          </th><td>Additional options for how the Activity should be started.
 See <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">Context.startActivity(Intent, Bundle)</a></code> for more details.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th>
            </th><td>android.content.ActivityNotFoundException</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivityFromChild(android.app.Activity, android.content.Intent, int, android.os.Bundle)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startActivityFromChild</span>
      <span class="normal">(<a href="./Activity_files/Activity.htm">Activity</a> child, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This is called when a child activity of this one calls its 
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code> or <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code> method.
 
 </p><p>This method throws <code><a href="http://developer.android.com/reference/android/content/ActivityNotFoundException.html">ActivityNotFoundException</a></code>
 if there was no Activity found to run the given Intent.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>child
          </th><td>The activity making the call.</td>
        </tr>
        <tr>
          <th>intent
          </th><td>The intent to start.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>Reply request code.  &lt; 0 if reply is not requested.</td>
        </tr>
        <tr>
          <th>options
          </th><td>Additional options for how the Activity should be started.
 See <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">Context.startActivity(Intent, Bundle)</a></code> for more details.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th>
            </th><td>android.content.ActivityNotFoundException</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivityFromChild(android.app.Activity, android.content.Intent, int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startActivityFromChild</span>
      <span class="normal">(<a href="./Activity_files/Activity.htm">Activity</a> child, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityFromChild(android.app.Activity, android.content.Intent, int, android.os.Bundle)">startActivityFromChild(Activity, Intent, int, Bundle)</a></code>
 with no options.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>child
          </th><td>The activity making the call.</td>
        </tr>
        <tr>
          <th>intent
          </th><td>The intent to start.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>Reply request code.  &lt; 0 if reply is not requested.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th>
            </th><td>android.content.ActivityNotFoundException</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivityFromFragment(android.app.Fragment, android.content.Intent, int, android.os.Bundle)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startActivityFromFragment</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a> fragment, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This is called when a Fragment in this activity calls its 
 <code><a href="http://developer.android.com/reference/android/app/Fragment.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code> or <code><a href="http://developer.android.com/reference/android/app/Fragment.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code>
 method.
 
 </p><p>This method throws <code><a href="http://developer.android.com/reference/android/content/ActivityNotFoundException.html">ActivityNotFoundException</a></code>
 if there was no Activity found to run the given Intent.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>fragment
          </th><td>The fragment making the call.</td>
        </tr>
        <tr>
          <th>intent
          </th><td>The intent to start.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>Reply request code.  &lt; 0 if reply is not requested.</td>
        </tr>
        <tr>
          <th>options
          </th><td>Additional options for how the Activity should be started.
 See <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">Context.startActivity(Intent, Bundle)</a></code> for more details.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th>
            </th><td>android.content.ActivityNotFoundException</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Fragment.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Fragment.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivityFromFragment(android.app.Fragment, android.content.Intent, int)"></a>

<div class="jd-details api apilevel-11"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startActivityFromFragment</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/app/Fragment.html">Fragment</a> fragment, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 11</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityFromFragment(android.app.Fragment, android.content.Intent, int, android.os.Bundle)">startActivityFromFragment(Fragment, Intent, int, Bundle)</a></code>
 with no options.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>fragment
          </th><td>The fragment making the call.</td>
        </tr>
        <tr>
          <th>intent
          </th><td>The intent to start.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>Reply request code.  &lt; 0 if reply is not requested.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th>
            </th><td>android.content.ActivityNotFoundException</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Fragment.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Fragment.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivityIfNeeded(android.content.Intent, int, android.os.Bundle)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">startActivityIfNeeded</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>A special variation to launch an activity only if a new activity
 instance is needed to handle the given Intent.  In other words, this is
 just like <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code> except: if you are 
 using the <code><a href="http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_SINGLE_TOP">FLAG_ACTIVITY_SINGLE_TOP</a></code> flag, or
 singleTask or singleTop 
 <code><a href="http://developer.android.com/reference/android/R.styleable.html#AndroidManifestActivity_launchMode">launchMode</a></code>,
 and the activity 
 that handles <var>intent</var> is the same as your currently running 
 activity, then a new instance is not needed.  In this case, instead of 
 the normal behavior of calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent)">onNewIntent(Intent)</a></code> this function will 
 return and you can handle the Intent yourself. 
 
 </p><p>This function can only be called from a top-level activity; if it is
 called from a child activity, a runtime exception will be thrown.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The intent to start.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>If &gt;= 0, this code will be returned in
         onActivityResult() when the activity exits, as described in
         <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code>.</td>
        </tr>
        <tr>
          <th>options
          </th><td>Additional options for how the Activity should be started.
 See <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">Context.startActivity(Intent, Bundle)</a></code> for more details.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>If a new activity was launched then true is returned; otherwise
         false is returned and you must handle the Intent yourself.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startActivityIfNeeded(android.content.Intent, int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">startActivityIfNeeded</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, int requestCode)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityIfNeeded(android.content.Intent, int, android.os.Bundle)">startActivityIfNeeded(Intent, int, Bundle)</a></code>
 with no options.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The intent to start.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>If &gt;= 0, this code will be returned in
         onActivityResult() when the activity exits, as described in
         <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code>.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>If a new activity was launched then true is returned; otherwise
         false is returned and you must handle the Intent yourself.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startIntentSender</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Like <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent, Bundle)</a></code>, but taking a IntentSender
 to start; see
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSenderForResult(IntentSender, int, Intent, int, int, int, Bundle)</a></code>
 for more information.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The IntentSender to launch.</td>
        </tr>
        <tr>
          <th>fillInIntent
          </th><td>If non-null, this will be provided as the
 intent parameter to <code><a href="http://developer.android.com/reference/android/content/IntentSender.html#sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler)">sendIntent(Context, int, Intent, IntentSender.OnFinished, Handler)</a></code>.</td>
        </tr>
        <tr>
          <th>flagsMask
          </th><td>Intent flags in the original IntentSender that you
 would like to change.</td>
        </tr>
        <tr>
          <th>flagsValues
          </th><td>Desired values for any bits set in
 <var>flagsMask</var></td>
        </tr>
        <tr>
          <th>extraFlags
          </th><td>Always set to 0.</td>
        </tr>
        <tr>
          <th>options
          </th><td>Additional options for how the Activity should be started.
 See <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">Context.startActivity(Intent, Bundle)</a></code> for more details.  If options
 have also been supplied by the IntentSender, options given here will
 override any that conflict with those given by the IntentSender.
</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th><a href="http://developer.android.com/reference/android/content/IntentSender.SendIntentException.html">IntentSender.SendIntentException</a>
            </th><td></td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int)"></a>

<div class="jd-details api apilevel-5"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startIntentSender</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 5</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSender(IntentSender, Intent, int, int, int, Bundle)</a></code>
 with no options.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The IntentSender to launch.</td>
        </tr>
        <tr>
          <th>fillInIntent
          </th><td>If non-null, this will be provided as the
 intent parameter to <code><a href="http://developer.android.com/reference/android/content/IntentSender.html#sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler)">sendIntent(Context, int, Intent, IntentSender.OnFinished, Handler)</a></code>.</td>
        </tr>
        <tr>
          <th>flagsMask
          </th><td>Intent flags in the original IntentSender that you
 would like to change.</td>
        </tr>
        <tr>
          <th>flagsValues
          </th><td>Desired values for any bits set in
 <var>flagsMask</var></td>
        </tr>
        <tr>
          <th>extraFlags
          </th><td>Always set to 0.
</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th><a href="http://developer.android.com/reference/android/content/IntentSender.SendIntentException.html">IntentSender.SendIntentException</a>
            </th><td></td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startIntentSenderForResult</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Like <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code>, but allowing you
 to use a IntentSender to describe the activity to be started.  If
 the IntentSender is for an activity, that activity will be started
 as if you had called the regular <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code>
 here; otherwise, its associated action will be executed (such as
 sending a broadcast) as if you had called
 <code><a href="http://developer.android.com/reference/android/content/IntentSender.html#sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler)">IntentSender.sendIntent</a></code> on it.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The IntentSender to launch.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>If &gt;= 0, this code will be returned in
                    onActivityResult() when the activity exits.</td>
        </tr>
        <tr>
          <th>fillInIntent
          </th><td>If non-null, this will be provided as the
 intent parameter to <code><a href="http://developer.android.com/reference/android/content/IntentSender.html#sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler)">sendIntent(Context, int, Intent, IntentSender.OnFinished, Handler)</a></code>.</td>
        </tr>
        <tr>
          <th>flagsMask
          </th><td>Intent flags in the original IntentSender that you
 would like to change.</td>
        </tr>
        <tr>
          <th>flagsValues
          </th><td>Desired values for any bits set in
 <var>flagsMask</var></td>
        </tr>
        <tr>
          <th>extraFlags
          </th><td>Always set to 0.</td>
        </tr>
        <tr>
          <th>options
          </th><td>Additional options for how the Activity should be started.
 See <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">Context.startActivity(Intent, Bundle)</a></code> for more details.  If options
 have also been supplied by the IntentSender, options given here will
 override any that conflict with those given by the IntentSender.
</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th><a href="http://developer.android.com/reference/android/content/IntentSender.SendIntentException.html">IntentSender.SendIntentException</a>
            </th><td></td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int)"></a>

<div class="jd-details api apilevel-5"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startIntentSenderForResult</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 5</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSenderForResult(IntentSender, int, Intent, int, int, int, Bundle)</a></code> with no options.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The IntentSender to launch.</td>
        </tr>
        <tr>
          <th>requestCode
          </th><td>If &gt;= 0, this code will be returned in
                    onActivityResult() when the activity exits.</td>
        </tr>
        <tr>
          <th>fillInIntent
          </th><td>If non-null, this will be provided as the
 intent parameter to <code><a href="http://developer.android.com/reference/android/content/IntentSender.html#sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler)">sendIntent(Context, int, Intent, IntentSender.OnFinished, Handler)</a></code>.</td>
        </tr>
        <tr>
          <th>flagsMask
          </th><td>Intent flags in the original IntentSender that you
 would like to change.</td>
        </tr>
        <tr>
          <th>flagsValues
          </th><td>Desired values for any bits set in
 <var>flagsMask</var></td>
        </tr>
        <tr>
          <th>extraFlags
          </th><td>Always set to 0.
</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th><a href="http://developer.android.com/reference/android/content/IntentSender.SendIntentException.html">IntentSender.SendIntentException</a>
            </th><td></td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="startIntentSenderFromChild(android.app.Activity, android.content.IntentSender, int, android.content.Intent, int, int, int)"></a>

<div class="jd-details api apilevel-5"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startIntentSenderFromChild</span>
      <span class="normal">(<a href="./Activity_files/Activity.htm">Activity</a> child, <a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 5</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderFromChild(android.app.Activity, android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)">startIntentSenderFromChild(Activity, IntentSender, int, Intent, int, int, int, Bundle)</a></code> with no options.
</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th><a href="http://developer.android.com/reference/android/content/IntentSender.SendIntentException.html">IntentSender.SendIntentException</a>
            </th><td></td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="startIntentSenderFromChild(android.app.Activity, android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startIntentSenderFromChild</span>
      <span class="normal">(<a href="./Activity_files/Activity.htm">Activity</a> child, <a href="http://developer.android.com/reference/android/content/IntentSender.html">IntentSender</a> intent, int requestCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Like <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityFromChild(android.app.Activity, android.content.Intent, int)">startActivityFromChild(Activity, Intent, int)</a></code>, but
 taking a IntentSender; see
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int)">startIntentSenderForResult(IntentSender, int, Intent, int, int, int)</a></code>
 for more information.
</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tbody><tr>
            <th><a href="http://developer.android.com/reference/android/content/IntentSender.SendIntentException.html">IntentSender.SendIntentException</a>
            </th><td></td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="startManagingCursor(android.database.Cursor)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startManagingCursor</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/database/Cursor.html">Cursor</a> c)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 11</strong>.<br> Use the new <code><a href="http://developer.android.com/reference/android/content/CursorLoader.html">CursorLoader</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/LoaderManager.html">LoaderManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>This method allows the activity to take care of managing the given
 <code><a href="http://developer.android.com/reference/android/database/Cursor.html">Cursor</a></code>'s lifecycle for you based on the activity's lifecycle.
 That is, when the activity is stopped it will automatically call
 <code><a href="http://developer.android.com/reference/android/database/Cursor.html#deactivate()">deactivate()</a></code> on the given Cursor, and when it is later restarted
 it will call <code><a href="http://developer.android.com/reference/android/database/Cursor.html#requery()">requery()</a></code> for you.  When the activity is
 destroyed, all managed Cursors will be closed automatically.
 
 <em>If you are targeting <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB">HONEYCOMB</a></code>
 or later, consider instead using <code><a href="http://developer.android.com/reference/android/app/LoaderManager.html">LoaderManager</a></code> instead, available
 via <code><a href="http://developer.android.com/reference/android/app/Activity.html#getLoaderManager()">getLoaderManager()</a></code>.</em>

 </p><p><strong>Warning:</strong> Do not call <code><a href="http://developer.android.com/reference/android/database/Cursor.html#close()">close()</a></code> on cursor obtained from
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#managedQuery(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)">managedQuery(Uri, String[], String, String[], String)</a></code>, because the activity will do that for you at the appropriate time.
 However, if you call <code><a href="http://developer.android.com/reference/android/app/Activity.html#stopManagingCursor(android.database.Cursor)">stopManagingCursor(Cursor)</a></code> on a cursor from a managed query, the system
 <em>will not</em> automatically close the cursor and, in that case, you must call
 <code><a href="http://developer.android.com/reference/android/database/Cursor.html#close()">close()</a></code>.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>c
          </th><td>The Cursor to be managed.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#managedQuery(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)">managedQuery(android.net.Uri, String[], String, String[], String)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#stopManagingCursor(android.database.Cursor)">stopManagingCursor(Cursor)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="startNextMatchingActivity(android.content.Intent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">startNextMatchingActivity</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Same as calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startNextMatchingActivity(android.content.Intent, android.os.Bundle)">startNextMatchingActivity(Intent, Bundle)</a></code> with
 no options.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The intent to dispatch to the next activity.  For
 correct behavior, this must be the same as the Intent that started
 your own activity; the only changes you can make are to the extras
 inside of it.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns a boolean indicating whether there was another Activity
 to start: true if there was a next activity to start, false if there
 wasn't.  In general, if true is returned you will then want to call
 finish() on yourself.
</li></ul>
  </div>

    </div>
</div>


<a name="startNextMatchingActivity(android.content.Intent, android.os.Bundle)"></a>

<div class="jd-details api apilevel-16"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">startNextMatchingActivity</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> options)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 16</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Special version of starting an activity, for use when you are replacing
 other activity components.  You can use this to hand the Intent off
 to the next Activity that can handle it.  You typically call this in
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> with the Intent returned by <code><a href="http://developer.android.com/reference/android/app/Activity.html#getIntent()">getIntent()</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The intent to dispatch to the next activity.  For
 correct behavior, this must be the same as the Intent that started
 your own activity; the only changes you can make are to the extras
 inside of it.</td>
        </tr>
        <tr>
          <th>options
          </th><td>Additional options for how the Activity should be started.
 See <code><a href="http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent, android.os.Bundle)">Context.startActivity(Intent, Bundle)</a></code> for more details.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>Returns a boolean indicating whether there was another Activity
 to start: true if there was a next activity to start, false if there
 wasn't.  In general, if true is returned you will then want to call
 finish() on yourself.
</li></ul>
  </div>

    </div>
</div>


<a name="startSearch(java.lang.String, boolean, android.os.Bundle, boolean)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">startSearch</span>
      <span class="normal">(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> initialQuery, boolean selectInitialQuery, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> appSearchData, boolean globalSearch)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This hook is called to launch the search UI.
 
 </p><p>It is typically called from onSearchRequested(), either directly from 
 Activity.onSearchRequested() or from an overridden version in any given 
 Activity.  If your goal is simply to activate search, it is preferred to call
 onSearchRequested(), which may have been overriden elsewhere in your Activity.  If your goal
 is to inject specific data such as context data, it is preferred to <i>override</i>
 onSearchRequested(), so that any callers to it will benefit from the override.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>initialQuery
          </th><td>Any non-null non-empty string will be inserted as 
 pre-entered text in the search query box.</td>
        </tr>
        <tr>
          <th>selectInitialQuery
          </th><td>If true, the intial query will be preselected, which means that
 any further typing will replace it.  This is useful for cases where an entire pre-formed
 query is being inserted.  If false, the selection point will be placed at the end of the
 inserted query.  This is useful when the inserted query is text that the user entered,
 and the user would expect to be able to keep typing.  <i>This parameter is only meaningful
 if initialQuery is a non-empty string.</i></td>
        </tr>
        <tr>
          <th>appSearchData
          </th><td>An application can insert application-specific 
 context here, in order to improve quality or specificity of its own 
 searches.  This data will be returned with SEARCH intent(s).  Null if
 no extra data is required.</td>
        </tr>
        <tr>
          <th>globalSearch
          </th><td>If false, this will only launch the search that has been specifically
 defined by the application (which is usually defined as a local search).  If no default 
 search is defined in the current application or activity, global search will be launched.
 If true, this will always launch a platform-global (e.g. web-based) search instead.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/SearchManager.html">SearchManager</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onSearchRequested()">onSearchRequested()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="stopManagingCursor(android.database.Cursor)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">stopManagingCursor</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/database/Cursor.html">Cursor</a> c)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 11</strong>.<br> Use the new <code><a href="http://developer.android.com/reference/android/content/CursorLoader.html">CursorLoader</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/LoaderManager.html">LoaderManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>Given a Cursor that was previously given to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#startManagingCursor(android.database.Cursor)">startManagingCursor(Cursor)</a></code>, stop the activity's management of that
 cursor.
 
 </p><p><strong>Warning:</strong> After calling this method on a cursor from a managed query,
 the system <em>will not</em> automatically close the cursor and you must call 
 <code><a href="http://developer.android.com/reference/android/database/Cursor.html#close()">close()</a></code>.</p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>c
          </th><td>The Cursor that was being managed.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startManagingCursor(android.database.Cursor)">startManagingCursor(Cursor)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="takeKeyEvents(boolean)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">takeKeyEvents</span>
      <span class="normal">(boolean get)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Request that key events come to this activity. Use this if your
 activity has no views with focus, but the activity still wants
 a chance to process key events.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/view/Window.html#takeKeyEvents(boolean)">takeKeyEvents(boolean)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="triggerSearch(java.lang.String, android.os.Bundle)"></a>

<div class="jd-details api apilevel-5"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">triggerSearch</span>
      <span class="normal">(<a href="http://developer.android.com/reference/java/lang/String.html">String</a> query, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> appSearchData)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 5</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Similar to <code><a href="http://developer.android.com/reference/android/app/Activity.html#startSearch(java.lang.String, boolean, android.os.Bundle, boolean)">startSearch(String, boolean, Bundle, boolean)</a></code>, but actually fires off the search query after invoking
 the search dialog.  Made available for testing purposes.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>query
          </th><td>The query to trigger.  If empty, the request will be ignored.</td>
        </tr>
        <tr>
          <th>appSearchData
          </th><td>An application can insert application-specific
 context here, in order to improve quality or specificity of its own
 searches.  This data will be returned with SEARCH intent(s).  Null if
 no extra data is required.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="unregisterForContextMenu(android.view.View)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">unregisterForContextMenu</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/view/View.html">View</a> view)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Prevents a context menu to be shown for the given view. This method will remove the
 <code><a href="http://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html">View.OnCreateContextMenuListener</a></code> on the view.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>view
          </th><td>The view that should stop showing a context menu.
</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#registerForContextMenu(android.view.View)">registerForContextMenu(View)</a></code></li>
      </ul>
  </div>

    </div>
</div>





<!-- ========= METHOD DETAIL ======== -->

<h2 style="margin-bottom: 0px;">Protected Methods</h2><hr>



<a name="onActivityResult(int, int, android.content.Intent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onActivityResult</span>
      <span class="normal">(int requestCode, int resultCode, <a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> data)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when an activity you launched exits, giving you the requestCode
 you started it with, the resultCode it returned, and any additional
 data from it.  The <var>resultCode</var> will be
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED">RESULT_CANCELED</a></code> if the activity explicitly returned that,
 didn't return any result, or crashed during its operation.
 
 </p><p>You will receive this call immediately before onResume() when your
 activity is re-starting.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>requestCode
          </th><td>The integer request code originally supplied to
                    startActivityForResult(), allowing you to identify who this
                    result came from.</td>
        </tr>
        <tr>
          <th>resultCode
          </th><td>The integer result code returned by the child activity
                   through its setResult().</td>
        </tr>
        <tr>
          <th>data
          </th><td>An Intent, which can return result data to the caller
               (various data can be attached to Intent "extras").</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int)">startActivityForResult(Intent, int)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#createPendingResult(int, android.content.Intent, int)">createPendingResult(int, Intent, int)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setResult(int)">setResult(int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onApplyThemeResource(android.content.res.Resources.Theme, int, boolean)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onApplyThemeResource</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/res/Resources.Theme.html">Resources.Theme</a> theme, int resid, boolean first)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called by <code><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#setTheme(int)">setTheme(int)</a></code> and <code><a href="http://developer.android.com/reference/android/view/ContextThemeWrapper.html#getTheme()">getTheme()</a></code> to apply a theme
 resource to the current Theme object.  Can override to change the
 default (simple) behavior.  This method will not be called in multiple
 threads simultaneously.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>theme
          </th><td>The Theme object being modified.</td>
        </tr>
        <tr>
          <th>resid
          </th><td>The theme style resource being applied to <var>theme</var>.</td>
        </tr>
        <tr>
          <th>first
          </th><td>Set to true if this is the first time a style is being
              applied to <var>theme</var>.
</td>
        </tr>
      </tbody></table>
  </div>

    </div>
</div>


<a name="onChildTitleChanged(android.app.Activity, java.lang.CharSequence)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onChildTitleChanged</span>
      <span class="normal">(<a href="./Activity_files/Activity.htm">Activity</a> childActivity, <a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a> title)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a name="onCreate(android.os.Bundle)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onCreate</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> savedInstanceState)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when the activity is starting.  This is where most initialization
 should go: calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#setContentView(int)">setContentView(int)</a></code> to inflate the
 activity's UI, using <code><a href="http://developer.android.com/reference/android/app/Activity.html#findViewById(int)">findViewById(int)</a></code> to programmatically interact
 with widgets in the UI, calling
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#managedQuery(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)">managedQuery(android.net.Uri, String[], String, String[], String)</a></code> to retrieve
 cursors for data being displayed, etc.
 
 </p><p>You can call <code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code> from within this function, in
 which case onDestroy() will be immediately called without any of the rest
 of the activity lifecycle (<code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code>, <code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code>,
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code>, etc) executing.
 
 </p><p><em>Derived classes must call through to the super class's
 implementation of this method.  If they do not, an exception will be
 thrown.</em></p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>savedInstanceState
          </th><td>If the activity is being re-initialized after
     previously being shut down then this Bundle contains the data it most
     recently supplied in <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code>.  <b><i>Note: Otherwise it is null.</i></b></td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPostCreate(android.os.Bundle)">onPostCreate(Bundle)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onCreateDialog(int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        <a href="http://developer.android.com/reference/android/app/Dialog.html">Dialog</a>
      </span>
      <span class="sympad">onCreateDialog</span>
      <span class="normal">(int id)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 8</strong>.<br> Old no-arguments version of <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int, android.os.Bundle)">onCreateDialog(int, Bundle)</a></code>.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a name="onCreateDialog(int, android.os.Bundle)"></a>

<div class="jd-details api apilevel-8"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        <a href="http://developer.android.com/reference/android/app/Dialog.html">Dialog</a>
      </span>
      <span class="sympad">onCreateDialog</span>
      <span class="normal">(int id, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> args)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 8</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 13</strong>.<br> Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>Callback for creating dialogs that are managed (saved and restored) for you
 by the activity.  The default implementation calls through to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int)">onCreateDialog(int)</a></code> for compatibility.

 <em>If you are targeting <code><a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB">HONEYCOMB</a></code>
 or later, consider instead using a <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> instead.</em>

 </p><p>If you use <code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int)">showDialog(int)</a></code>, the activity will call through to
 this method the first time, and hang onto it thereafter.  Any dialog
 that is created by this method will automatically be saved and restored
 for you, including whether it is showing.

 </p><p>If you would like the activity to manage saving and restoring dialogs
 for you, you should override this method and handle any ids that are
 passed to <code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int)">showDialog(int)</a></code>.

 </p><p>If you would like an opportunity to prepare your dialog before it is shown,
 override <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog, android.os.Bundle)">onPrepareDialog(int, Dialog, Bundle)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>id
          </th><td>The id of the dialog.</td>
        </tr>
        <tr>
          <th>args
          </th><td>The dialog arguments provided to <code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int, android.os.Bundle)">showDialog(int, Bundle)</a></code>.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The dialog.  If you return null, the dialog will not be created.</li></ul>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog, android.os.Bundle)">onPrepareDialog(int, Dialog, Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int, android.os.Bundle)">showDialog(int, Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#dismissDialog(int)">dismissDialog(int)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#removeDialog(int)">removeDialog(int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onDestroy()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onDestroy</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Perform any final cleanup before an activity is destroyed.  This can
 happen either because the activity is finishing (someone called
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code> on it, or because the system is temporarily destroying
 this instance of the activity to save space.  You can distinguish
 between these two scenarios with the <code><a href="http://developer.android.com/reference/android/app/Activity.html#isFinishing()">isFinishing()</a></code> method.
 
 </p><p><em>Note: do not count on this method being called as a place for
 saving data! For example, if an activity is editing data in a content
 provider, those edits should be committed in either <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> or
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code>, not here.</em> This method is usually implemented to
 free resources like threads that are associated with an activity, so
 that a destroyed activity does not leave such things around while the
 rest of its application is still running.  There are situations where
 the system will simply kill the activity's hosting process without
 calling this method (or any others) in it, so it should not be used to
 do things that are intended to remain around after the process goes
 away.
 
 </p><p><em>Derived classes must call through to the super class's
 implementation of this method.  If they do not, an exception will be
 thrown.</em></p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#finish()">finish()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#isFinishing()">isFinishing()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onNewIntent(android.content.Intent)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onNewIntent</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/content/Intent.html">Intent</a> intent)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This is called for activities that set launchMode to "singleTop" in
 their package, or if a client used the <code><a href="http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_SINGLE_TOP">FLAG_ACTIVITY_SINGLE_TOP</a></code>
 flag when calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent)">startActivity(Intent)</a></code>.  In either case, when the
 activity is re-launched while at the top of the activity stack instead
 of a new instance of the activity being started, onNewIntent() will be
 called on the existing instance with the Intent that was used to
 re-launch it. 
  
 </p><p>An activity will always be paused before receiving a new intent, so 
 you can count on <code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code> being called after this method. 
 
 </p><p>Note that <code><a href="http://developer.android.com/reference/android/app/Activity.html#getIntent()">getIntent()</a></code> still returns the original Intent.  You 
 can use <code><a href="http://developer.android.com/reference/android/app/Activity.html#setIntent(android.content.Intent)">setIntent(Intent)</a></code> to update it to this new Intent.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>intent
          </th><td>The new intent that was started for the activity.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#getIntent()">getIntent()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#setIntent(android.content.Intent)">setIntent(Intent)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onPause()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onPause</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called as part of the activity lifecycle when an activity is going into
 the background, but has not (yet) been killed.  The counterpart to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code>.

 </p><p>When activity B is launched in front of activity A, this callback will
 be invoked on A.  B will not be created until A's <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> returns,
 so be sure to not do anything lengthy here.

 </p><p>This callback is mostly used for saving any persistent state the
 activity is editing, to present a "edit in place" model to the user and
 making sure nothing is lost if there are not enough resources to start
 the new activity without first killing this one.  This is also a good
 place to do things like stop animations and other things that consume a
 noticeable amount of CPU in order to make the switch to the next activity
 as fast as possible, or to close resources that are exclusive access
 such as the camera.
 
 </p><p>In situations where the system needs more memory it may kill paused
 processes to reclaim resources.  Because of this, you should be sure
 that all of your state is saved by the time you return from
 this function.  In general <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code> is used to save
 per-instance state in the activity and this method is used to store
 global persistent data (in content providers, files, etc.)
 
 </p><p>After receiving this call you will usually receive a following call
 to <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code> (after the next activity has been resumed and
 displayed), however in some cases there will be a direct call back to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code> without going through the stopped state.
 
 </p><p><em>Derived classes must call through to the super class's
 implementation of this method.  If they do not, an exception will be
 thrown.</em></p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onPostCreate(android.os.Bundle)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onPostCreate</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> savedInstanceState)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when activity start-up is complete (after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code>
 and <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code> have been called).  Applications will
 generally not implement this method; it is intended for system
 classes to do final initialization after application code has run.
 
 </p><p><em>Derived classes must call through to the super class's
 implementation of this method.  If they do not, an exception will be
 thrown.</em></p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>savedInstanceState
          </th><td>If the activity is being re-initialized after
     previously being shut down then this Bundle contains the data it most
     recently supplied in <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code>.  <b><i>Note: Otherwise it is null.</i></b></td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onPostResume()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onPostResume</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when activity resume is complete (after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code> has
 been called). Applications will generally not implement this method;
 it is intended for system classes to do final setup after application
 resume code has run.
 
 </p><p><em>Derived classes must call through to the super class's
 implementation of this method.  If they do not, an exception will be
 thrown.</em></p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onPrepareDialog(int, android.app.Dialog)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onPrepareDialog</span>
      <span class="normal">(int id, <a href="http://developer.android.com/reference/android/app/Dialog.html">Dialog</a> dialog)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 8</strong>.<br> Old no-arguments version of
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog, android.os.Bundle)">onPrepareDialog(int, Dialog, Bundle)</a></code>.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a name="onPrepareDialog(int, android.app.Dialog, android.os.Bundle)"></a>

<div class="jd-details api apilevel-8"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onPrepareDialog</span>
      <span class="normal">(int id, <a href="http://developer.android.com/reference/android/app/Dialog.html">Dialog</a> dialog, <a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> args)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 8</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      <p>
  </p><p class="caution">
      <strong>This method was deprecated
      in API level 13</strong>.<br> Use the new <code><a href="http://developer.android.com/reference/android/app/DialogFragment.html">DialogFragment</a></code> class with
 <code><a href="http://developer.android.com/reference/android/app/FragmentManager.html">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.

  </p>
  <div class="jd-tagdata jd-tagdescr"><p>Provides an opportunity to prepare a managed dialog before it is being
 shown.  The default implementation calls through to
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPrepareDialog(int, android.app.Dialog)">onPrepareDialog(int, Dialog)</a></code> for compatibility.
 
 </p><p>
 Override this if you need to update a managed dialog based on the state
 of the application each time it is shown. For example, a time picker
 dialog might want to be updated with the current time. You should call
 through to the superclass's implementation. The default implementation
 will set this Activity as the owner activity on the Dialog.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>id
          </th><td>The id of the managed dialog.</td>
        </tr>
        <tr>
          <th>dialog
          </th><td>The dialog.</td>
        </tr>
        <tr>
          <th>args
          </th><td>The dialog arguments provided to <code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int, android.os.Bundle)">showDialog(int, Bundle)</a></code>.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreateDialog(int, android.os.Bundle)">onCreateDialog(int, Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#showDialog(int)">showDialog(int)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#dismissDialog(int)">dismissDialog(int)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#removeDialog(int)">removeDialog(int)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onRestart()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onRestart</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code> when the current activity is being
 re-displayed to the user (the user has navigated back to it).  It will
 be followed by <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code> and then <code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code>.

 </p><p>For activities that are using raw <code><a href="http://developer.android.com/reference/android/database/Cursor.html">Cursor</a></code> objects (instead of
 creating them through
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#managedQuery(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String)">managedQuery(android.net.Uri, String[], String, String[], String)</a></code>,
 this is usually the place
 where the cursor should be requeried (because you had deactivated it in
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code>.
 
 </p><p><em>Derived classes must call through to the super class's
 implementation of this method.  If they do not, an exception will be
 thrown.</em></p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onRestoreInstanceState(android.os.Bundle)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onRestoreInstanceState</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> savedInstanceState)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>This method is called after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code> when the activity is
 being re-initialized from a previously saved state, given here in
 <var>savedInstanceState</var>.  Most implementations will simply use <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code>
 to restore their state, but it is sometimes convenient to do it here
 after all of the initialization has been done or to allow subclasses to
 decide whether to use your default implementation.  The default
 implementation of this method performs a restore of any view state that
 had previously been frozen by <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code>.
 
 </p><p>This method is called between <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStart()">onStart()</a></code> and
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPostCreate(android.os.Bundle)">onPostCreate(Bundle)</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>savedInstanceState
          </th><td>the data most recently supplied in <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code>.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPostCreate(android.os.Bundle)">onPostCreate(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onResume()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onResume</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code>, <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestart()">onRestart()</a></code>, or
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code>, for your activity to start interacting with the user.
 This is a good place to begin animations, open exclusive-access devices
 (such as the camera), etc.

 </p><p>Keep in mind that onResume is not the best indicator that your activity
 is visible to the user; a system window such as the keyguard may be in
 front.  Use <code><a href="http://developer.android.com/reference/android/app/Activity.html#onWindowFocusChanged(boolean)">onWindowFocusChanged(boolean)</a></code> to know for certain that your
 activity is visible to the user (for example, to resume a game).

 </p><p><em>Derived classes must call through to the super class's
 implementation of this method.  If they do not, an exception will be
 thrown.</em></p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestart()">onRestart()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPostResume()">onPostResume()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onSaveInstanceState(android.os.Bundle)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onSaveInstanceState</span>
      <span class="normal">(<a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a> outState)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called to retrieve per-instance state from an activity before being killed
 so that the state can be restored in <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> or
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code> (the <code><a href="http://developer.android.com/reference/android/os/Bundle.html">Bundle</a></code> populated by this method
 will be passed to both).

 </p><p>This method is called before an activity may be killed so that when it
 comes back some time in the future it can restore its state.  For example,
 if activity B is launched in front of activity A, and at some point activity
 A is killed to reclaim resources, activity A will have a chance to save the
 current state of its user interface via this method so that when the user
 returns to activity A, the state of the user interface can be restored
 via <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> or <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code>.

 </p><p>Do not confuse this method with activity lifecycle callbacks such as
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code>, which is always called when an activity is being placed
 in the background or on its way to destruction, or <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code> which
 is called before destruction.  One example of when <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> and
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code> is called and not this method is when a user navigates back
 from activity B to activity A: there is no need to call <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code>
 on B because that particular instance will never be restored, so the
 system avoids calling it.  An example when <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> is called and
 not <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code> is when activity B is launched in front of activity A:
 the system may avoid calling <code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code> on activity A if it isn't
 killed during the lifetime of B since the state of the user interface of
 A will stay intact.

 </p><p>The default implementation takes care of most of the UI per-instance
 state for you by calling <code><a href="http://developer.android.com/reference/android/view/View.html#onSaveInstanceState()">onSaveInstanceState()</a></code> on each
 view in the hierarchy that has an id, and by saving the id of the currently
 focused view (all of which is restored by the default implementation of
 <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code>).  If you override this method to save additional
 information not captured by each individual view, you will likely want to
 call through to the default implementation, otherwise be prepared to save
 all of the state of each view yourself.

 </p><p>If called, this method will occur before <code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code>.  There are
 no guarantees about whether it will occur before or after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code>.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tbody><tr>
          <th>outState
          </th><td>Bundle in which to place your saved state.</td>
        </tr>
      </tbody></table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onStart()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onStart</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> — or after <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestart()">onRestart()</a></code> when  
 the activity had been stopped, but is now again being displayed to the 
 user.  It will be followed by <code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code>.

 </p><p><em>Derived classes must call through to the super class's
 implementation of this method.  If they do not, an exception will be
 thrown.</em></p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onStop()">onStop()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onStop()"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onStop</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called when you are no longer visible to the user.  You will next
 receive either <code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestart()">onRestart()</a></code>, <code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code>, or nothing,
 depending on later user activity.
 
 </p><p>Note that this method may never be called, in low memory situations
 where the system does not have enough memory to keep your activity's
 process running after its <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> method is called.
 
 </p><p><em>Derived classes must call through to the super class's
 implementation of this method.  If they do not, an exception will be
 thrown.</em></p><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onRestart()">onRestart()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onResume()">onResume()</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code></li><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onDestroy()">onDestroy()</a></code></li>
      </ul>
  </div>

    </div>
</div>


<a name="onTitleChanged(java.lang.CharSequence, int)"></a>

<div class="jd-details api apilevel-1"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onTitleChanged</span>
      <span class="normal">(<a href="http://developer.android.com/reference/java/lang/CharSequence.html">CharSequence</a> title, int color)</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 1</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a name="onUserLeaveHint()"></a>

<div class="jd-details api apilevel-3"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">onUserLeaveHint</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>
  Added in <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels">API level 3</a></div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Called as part of the activity lifecycle when an activity is about to go
 into the background as the result of user choice.  For example, when the
 user presses the Home key, <code><a href="http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()">onUserLeaveHint()</a></code> will be called, but
 when an incoming phone call causes the in-call Activity to be automatically
 brought to the foreground, <code><a href="http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()">onUserLeaveHint()</a></code> will not be called on
 the activity being interrupted.  In cases when it is invoked, this method
 is called right before the activity's <code><a href="http://developer.android.com/reference/android/app/Activity.html#onPause()">onPause()</a></code> callback.
 
 </p><p>This callback and <code><a href="http://developer.android.com/reference/android/app/Activity.html#onUserInteraction()">onUserInteraction()</a></code> are intended to help
 activities manage status bar notifications intelligently; specifically,
 for helping activities determine the proper time to cancel a notfication.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">See Also</h5>
      <ul class="nolist"><li><code><a href="http://developer.android.com/reference/android/app/Activity.html#onUserInteraction()">onUserInteraction()</a></code></li>
      </ul>
  </div>

    </div>
</div>





<!-- ========= END OF CLASS DATA ========= -->
<a name="navbar_top"></a>

<div id="footer" class="wrap">
        

  <div id="copyright">
    
  Except as noted, this content is licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 
  For details and restrictions, see the <a href="http://developer.android.com/license.html">
  Content License</a>.
  </div>
  <div id="build_info">
    
    Android 4.2&nbsp;r1 — 
<script src="./Activity_files/timestamp.js" type="text/javascript"></script>
<script>document.write(BUILD_TIMESTAMP)</script>25 Feb 2013 20:11

  </div>


  <div id="footerlinks">
    
  <p>
    <a href="http://developer.android.com/about/index.html">About Android</a>&nbsp;&nbsp;|&nbsp;
    <a href="http://developer.android.com/legal.html">Legal</a>&nbsp;&nbsp;|&nbsp;
    <a href="http://developer.android.com/support.html">Support</a>
  </p>
  </div>

</div> <!-- end footer -->
</div> <!-- jd-content -->

</div><!-- end doc-content -->

</div> <!-- end body-content --> 








</body></html>